コード例 #1
0
 /**
  * @test
  */
 function it_returns_and_can_restore_default_criteria()
 {
     $this->assertTrue($this->repository->defaultCriteria()->isEmpty(), "Defaultcriteria is not empty");
     $this->repository->pushCriteria($this->makeMockCriteria($this->never(), 'MockCriteria'));
     $this->assertCount(1, $this->repository->getCriteria(), "getCriteria() count incorrect after pushing new Criteria");
     $this->repository->restoreDefaultCriteria();
     $this->assertTrue($this->repository->getCriteria()->isEmpty(), "getCriteria() not empty after restoring default Criteria()");
 }