From e948091066e4893b1b823fc80db1c1ebba174b53 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 20 Nov 2018 18:55:56 +0100 Subject: Replaced old /api endpoint with ApiController --- tests/Unit/Controllers/ApiControllerTest.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/Unit/Controllers/ApiControllerTest.php (limited to 'tests/Unit') diff --git a/tests/Unit/Controllers/ApiControllerTest.php b/tests/Unit/Controllers/ApiControllerTest.php new file mode 100644 index 00000000..7e437e12 --- /dev/null +++ b/tests/Unit/Controllers/ApiControllerTest.php @@ -0,0 +1,25 @@ +index(); + + $this->assertEquals(501, $response->getStatusCode()); + $this->assertEquals(['application/json'], $response->getHeader('content-type')); + $this->assertJson($response->getContent()); + } +} -- cgit v1.2.3-70-g09d2