Beispiel #1
0
 /**
  * @test
  */
 public function createQueryReturnsQueryWithUnmodifiedDefaultQuerySettings()
 {
     $this->mockQuery = new \TYPO3\CMS\Extbase\Persistence\Generic\Query('foo');
     $mockDefaultQuerySettings = $this->getMock(\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface::class);
     $this->repository->setDefaultQuerySettings($mockDefaultQuerySettings);
     $query = $this->repository->createQuery();
     $instanceQuerySettings = $query->getQuerySettings();
     $this->assertEquals($mockDefaultQuerySettings, $instanceQuerySettings);
     $this->assertNotSame($mockDefaultQuerySettings, $instanceQuerySettings);
 }