/** * Test for something * * @test * @throws \TYPO3\CMS\Core\Exception * @return void */ public function locationWithAddressZipCityStateCountryGetStoredInSessionCache() { $this->coordinatesCache->flushCache(); $data = array('address' => uniqid('Address'), 'zipcode' => substr(mktime(), -5), 'city' => uniqid('City'), 'state' => '', 'country' => uniqid('Country')); $constraint = $this->getConstraintStub($data); $coordinate = array('latitude' => $constraint->getLatitude(), 'longitude' => $constraint->getLongitude()); $fields = array('address', 'zipcode', 'city', 'state', 'country'); $this->coordinatesCache->addCoordinateForAddress($constraint, $fields); $fields = array('address', 'zipcode', 'city', 'state', 'country'); $hash = $this->coordinatesCache->getHashForAddressWithFields($constraint, $fields); $this->assertEquals($coordinate, $this->coordinatesCache->getValueFromSession($hash)); }