File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
test/Field/Page/Fieldtype/FieldtypeMapMarker Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 88namespace ProcessWire \GraphQL \Test \FieldtypeMapMarker ;
99
1010use ProcessWire \GraphQL \Test \GraphQLTestCase ;
11- use ProcessWire \GraphQL \Test \Field \Page \Fieldtype \Traits \FieldtypeTestTrait ;
1211use ProcessWire \GraphQL \Utils ;
1312
1413class CaseThreeTest extends GraphQLTestCase
@@ -37,7 +36,6 @@ public function testValue()
3736 $ lng = -0.098562 ;
3837 $ address = "23576 Broadway, Chicago " ;
3938 $ zoom = 3 ;
40- $ name = "updated-building-with-location " ;
4139 $ variables = [
4240 "page " => [
4341 "id " => $ skyscraper ->id ,
@@ -50,30 +48,29 @@ public function testValue()
5048 ],
5149 ];
5250 $ res = self ::execute ($ query , $ variables );
53- $ expectedMap = $ skyscraper ->map ;
54- $ actualMap = $ res ->data ->skyscraper ->map ;
51+ $ actualMap = Utils::pages ()->get ($ skyscraper ->id )->map ;
5552 self ::assertEquals (
5653 $ skyscraper ->id ,
5754 $ res ->data ->skyscraper ->id ,
5855 "Updates the correct page. "
5956 );
6057 self ::assertEquals (
61- $ expectedMap -> lat ,
58+ $ lat ,
6259 $ actualMap ->lat ,
6360 "Updates lat correctly. "
6461 );
6562 self ::assertEquals (
66- $ expectedMap -> lng ,
63+ $ lng ,
6764 $ actualMap ->lng ,
6865 "Updates lng correctly. "
6966 );
7067 self ::assertEquals (
71- $ expectedMap -> address ,
68+ $ address ,
7269 $ actualMap ->address ,
7370 "Updates address correctly. "
7471 );
7572 self ::assertEquals (
76- $ expectedMap -> zoom ,
73+ $ zoom ,
7774 $ actualMap ->zoom ,
7875 "Updates zoom correctly. "
7976 );
You can’t perform that action at this time.
0 commit comments