/** * test _getPublishedConditions * * @return void */ public function testGetPublishedConditions() { $BlogEntryTesting = new TestingWrapper($this->BlogEntry); $now = '2015-01-01 00:00:00'; $conditions = $BlogEntryTesting->_testing__getPublishedConditions($now); $this->assertEquals(1, $conditions['BlogEntry.is_active']); $this->assertEquals($now, $conditions['BlogEntry.published_datetime <=']); }
/** * _getValidateSpecificationテスト * * @return void */ public function testGetValidateSpecification() { $BlogFakeModel = new BlogFakeModel(); $BlogEntryTesting = new TestingWrapper($BlogFakeModel); $specificationArray = $BlogEntryTesting->_testing__getValidateSpecification(); $this->assertInternalType('array', $specificationArray); }