From 1cd52fe156bfd5a93118aac5348988d08142d028 Mon Sep 17 00:00:00 2001 From: Ian Jenkins Date: Mon, 19 Jan 2015 13:34:50 +0000 Subject: [PATCH] Version9 A minor change to the behat context to ensure room can be entered through their name. --- tests/contexts/HomeOwnerContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/contexts/HomeOwnerContext.php b/tests/contexts/HomeOwnerContext.php index d66724b..0e752b8 100644 --- a/tests/contexts/HomeOwnerContext.php +++ b/tests/contexts/HomeOwnerContext.php @@ -50,7 +50,7 @@ public function iEnterThroughTheFrontDoor() public function iShouldBeInThe($location) { $whereAmI = $this->house->whereAmI(); - PHPUnit_Framework_Assert::assertEquals(Room::named($location), $whereAmI); + PHPUnit_Framework_Assert::assertEquals($location, $whereAmI->getName()); } /**