@@ -39,8 +39,7 @@ protected function setUp()
3939 public function testItCanCreateReportUsingPostRequest ()
4040 {
4141 $ postData = $ this ->getPostData (['add ' => true ]);
42- $ response = $ this ->client ->post ("http://localhost/bug_tracking_app/src/add.php " , $ postData );
43-
42+ $ response = $ this ->client ->post ("http://localhost/sand_box/bug_tracking_app/Src/View/add.php " , $ postData );
4443 $ response = json_decode ($ response , true );
4544 self ::assertEquals (200 , $ response ['statusCode ' ]);
4645
@@ -74,9 +73,10 @@ public function testItCanUpdateReportUsingPostRequest(BugReport $bugReport)
7473 'link ' => 'https://updated.com ' ,
7574 'report_id ' => $ bugReport ->getId ()
7675 ]);
77- $ response = $ this ->client ->post ("http://localhost/bug_tracking_app/src/update.php " , $ postData );
76+ $ response = $ this ->client ->post ("http://localhost/sand_box/ bug_tracking_app/src/View /update.php " , $ postData );
7877
7978 $ response = json_decode ($ response , true );
79+ var_dump ($ response );die ();
8080 self ::assertEquals (200 , $ response ['statusCode ' ]);
8181
8282 /** @var BugReport $result */
@@ -100,7 +100,7 @@ public function testItCanDeleteReportUsingPostRequest(BugReport $bugReport)
100100 'delete ' => true ,
101101 'report_id ' => $ bugReport ->getId ()
102102 ];
103- $ response = $ this ->client ->post ("http://localhost/bug_tracking_app/src/delete.php " , $ postData );
103+ $ response = $ this ->client ->post ("http://localhost/sand_box/ bug_tracking_app/src/View /delete.php " , $ postData );
104104
105105 $ response = json_decode ($ response , true );
106106 self ::assertEquals (200 , $ response ['statusCode ' ]);
0 commit comments