Skip to content

Commit

Permalink
remove old psalm annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Jun 3, 2024
1 parent d3c9786 commit 870fc52
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/Unit/Catalogue/CatalogueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ public function testPutBookToCatalogue(): void
self::assertEquals(Result::SUCCESS(), $result->get());
}

/**
* @psalm-suppress MixedMethodCall
* @psalm-suppress PossiblyUndefinedMethod
*/
public function testPutNewBookInstanceToCatalogue(): void
{
// given
Expand All @@ -80,10 +76,6 @@ public function testItFailsOnAddingBookWhenDatabaseFails(): void
self::assertTrue($result->isFailure());
}

/**
* @psalm-suppress MixedMethodCall
* @psalm-suppress PossiblyUndefinedMethod
*/
public function testItFailsOnAddingBookInstanceWhenDatabaseFails(): void
{
// given
Expand All @@ -98,19 +90,11 @@ public function testItFailsOnAddingBookInstanceWhenDatabaseFails(): void
self::assertTrue($result->isFailure());
}

/**
* @psalm-suppress MixedMethodCall
* @psalm-suppress PossiblyUndefinedMethod
*/
private function thereIsBookWith(string $isbn): void
{
$this->database->method('findByIsbn')->with(new ISBN($isbn))->willReturn(Option::of(dddBook()));
}

/**
* @psalm-suppress MixedMethodCall
* @psalm-suppress PossiblyUndefinedMethod
*/
private function databaseFails(): void
{
$this->database->method('saveBook')->willThrowException(new \Exception());
Expand Down

0 comments on commit 870fc52

Please sign in to comment.