/** * testGetStateId * * @return void * @access public * @see ____func_see____ * @since 1.0.0 */ public function testGetStateId() { $address = new \XLite\Model\Address(); $address->map($this->addressFields); $state = \XLite\Core\Database::getRepo('XLite\\Model\\State')->findOneByCountryAndCode('US', 'NY'); $address->setState($state); $this->assertNotNull($address->getStateId(), 'Checking that getStateId() result is not null'); $this->assertEquals($state->getStateId(), $address->getStateId(), 'Checking getStateId() result'); }