Пример #1
0
 public function testHasCriteria()
 {
     $authorRepository = new AuthorRepository();
     $authorRepository->criteria([WithPostsCriteria::class, OldThen2000Criteria::class]);
     $this->assertTrue($authorRepository->hasCriteria());
     $authorRepository->reset();
     $this->assertFalse($authorRepository->hasCriteria());
 }