Skip to content

Commit

Permalink
Rename graphObject to graphNode in test
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed Dec 6, 2017
1 parent 7cf460c commit bf0d761
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/GraphNode/GraphEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public function testCoverGetsCastAsGraphCoverPhoto()

$this->responseMock->getDecodedBody()->willReturn($dataFromGraph);
$factory = new GraphNodeFactory($this->responseMock->reveal());
$graphObject = $factory->makeGraphEvent();
$graphNode = $factory->makeGraphEvent();

$cover = $graphObject->getCover();
$cover = $graphNode->getCover();
$this->assertInstanceOf(GraphCoverPhoto::class, $cover);
}

Expand All @@ -65,9 +65,9 @@ public function testPlaceGetsCastAsGraphPage()

$this->responseMock->getDecodedBody()->willReturn($dataFromGraph);
$factory = new GraphNodeFactory($this->responseMock->reveal());
$graphObject = $factory->makeGraphEvent();
$graphNode = $factory->makeGraphEvent();

$place = $graphObject->getPlace();
$place = $graphNode->getPlace();
$this->assertInstanceOf(GraphPage::class, $place);
}

Expand All @@ -79,9 +79,9 @@ public function testPictureGetsCastAsGraphPicture()

$this->responseMock->getDecodedBody()->willReturn($dataFromGraph);
$factory = new GraphNodeFactory($this->responseMock->reveal());
$graphObject = $factory->makeGraphEvent();
$graphNode = $factory->makeGraphEvent();

$picture = $graphObject->getPicture();
$picture = $graphNode->getPicture();
$this->assertInstanceOf(GraphPicture::class, $picture);
}

Expand All @@ -93,9 +93,9 @@ public function testParentGroupGetsCastAsGraphGroup()

$this->responseMock->getDecodedBody()->willReturn($dataFromGraph);
$factory = new GraphNodeFactory($this->responseMock->reveal());
$graphObject = $factory->makeGraphEvent();
$graphNode = $factory->makeGraphEvent();

$parentGroup = $graphObject->getParentGroup();
$parentGroup = $graphNode->getParentGroup();
$this->assertInstanceOf(GraphGroup::class, $parentGroup);
}
}

0 comments on commit bf0d761

Please sign in to comment.