/** * CriteriaContainPageTypeAndDateRangeValues * * @return void */ public function testCriteriaContainPageTypeAndDateRangeValues() { $this->pageTypeMock->expects($this->once())->method('getValue')->will($this->returnValue('blog')); $startDate = new \DateTime('01.04.2015'); $this->dateRangeMock->expects($this->once())->method('getStartDate')->will($this->returnValue($startDate)); $endDate = new \DateTime('30.04.2015'); $this->dateRangeMock->expects($this->once())->method('getEndDate')->will($this->returnValue($endDate)); $criteria = $this->sut->getCriteria(); $this->assertSame(['blog', $startDate->getTimestamp(), $endDate->getTimestamp()], $criteria); }