| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testSetLocation() |
||
| 11 | { |
||
| 12 | ShopUserInfo::singleton()->setLocation( |
||
| 13 | [ |
||
| 14 | 'Country' => 'NZ', |
||
| 15 | 'State' => 'Wellington', |
||
| 16 | 'City' => 'Newton', |
||
| 17 | ] |
||
| 18 | ); |
||
| 19 | |||
| 20 | $location = ShopUserInfo::singleton()->getAddress(); |
||
| 21 | |||
| 22 | $this->assertEquals($location->Country, 'NZ'); |
||
| 23 | $this->assertEquals($location->State, 'Wellington'); |
||
| 24 | $this->assertEquals($location->City, 'Newton'); |
||
| 25 | } |
||
| 27 |