Working state
This commit is contained in:
@@ -143,9 +143,7 @@ final class PostRepositoryTest extends TestCase
|
||||
|
||||
$stmt->expects($this->once())
|
||||
->method('execute')
|
||||
->with($this->callback(fn (array $p): bool =>
|
||||
isset($p[':category_id']) && $p[':category_id'] === 3
|
||||
));
|
||||
->with([':category_id' => 3]);
|
||||
|
||||
$this->repository->findAll(3);
|
||||
}
|
||||
@@ -217,9 +215,7 @@ final class PostRepositoryTest extends TestCase
|
||||
|
||||
$stmt->expects($this->once())
|
||||
->method('execute')
|
||||
->with($this->callback(fn (array $p): bool =>
|
||||
isset($p[':author_id']) && $p[':author_id'] === 7
|
||||
));
|
||||
->with([':author_id' => 7]);
|
||||
|
||||
$this->repository->findByUserId(7);
|
||||
}
|
||||
@@ -234,11 +230,7 @@ final class PostRepositoryTest extends TestCase
|
||||
|
||||
$stmt->expects($this->once())
|
||||
->method('execute')
|
||||
->with($this->callback(fn (array $p): bool =>
|
||||
isset($p[':author_id'], $p[':category_id'])
|
||||
&& $p[':author_id'] === 7
|
||||
&& $p[':category_id'] === 3
|
||||
));
|
||||
->with([':author_id' => 7, ':category_id' => 3]);
|
||||
|
||||
$this->repository->findByUserId(7, 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user