@@ -17,7 +17,6 @@ public function test_server_response()
17
17
'User/Edit ' ,
18
18
['user ' => ['name ' => 'Jonathan ' ]],
19
19
'app ' ,
20
- ['foo ' => 'bar ' ],
21
20
'123 '
22
21
);
23
22
@@ -27,10 +26,9 @@ public function test_server_response()
27
26
$ this ->assertInstanceOf (View::class, $ response );
28
27
$ this ->assertSame ('User/Edit ' , $ page ['component ' ]);
29
28
$ this ->assertSame ('Jonathan ' , $ page ['props ' ]['user ' ]['name ' ]);
30
- $ this ->assertSame ('bar ' , $ page ['props ' ]['foo ' ]);
31
29
$ this ->assertSame ('/user/123 ' , $ page ['url ' ]);
32
30
$ this ->assertSame ('123 ' , $ page ['version ' ]);
33
- $ this ->assertSame ('<div id="app" data-page="{"component":"User\/Edit","props":{"foo":"bar"," user":{"name":"Jonathan"}},"url":"\/user\/123","version":"123"}"></div> ' ."\n" , $ response ->render ());
31
+ $ this ->assertSame ('<div id="app" data-page="{"component":"User\/Edit","props":{"user":{"name":"Jonathan"}},"url":"\/user\/123","version":"123"}"></div> ' ."\n" , $ response ->render ());
34
32
}
35
33
36
34
public function test_xhr_response ()
@@ -42,7 +40,6 @@ public function test_xhr_response()
42
40
'User/Edit ' ,
43
41
['user ' => ['name ' => 'Jonathan ' ]],
44
42
'app ' ,
45
- ['foo ' => 'bar ' ],
46
43
'123 '
47
44
);
48
45
@@ -52,7 +49,6 @@ public function test_xhr_response()
52
49
$ this ->assertInstanceOf (JsonResponse::class, $ response );
53
50
$ this ->assertSame ('User/Edit ' , $ page ->component );
54
51
$ this ->assertSame ('Jonathan ' , $ page ->props ->user ->name );
55
- $ this ->assertSame ('bar ' , $ page ->props ->foo );
56
52
$ this ->assertSame ('/user/123 ' , $ page ->url );
57
53
$ this ->assertSame ('123 ' , $ page ->version );
58
54
}
0 commit comments