for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Tests;
class GeneralApiTest extends BaseTestCase
{
public function testIndexHttp200()
$response = $this->call($this->createRequest('GET', '/'));
$this->assertEquals(200, $response->getStatusCode());
$response = $this->call($this->createRequest('GET', '/about'));
}
public function testIndexWithSlashHttp301()
$response = $this->call($this->createRequest('GET', '/about/'));
$this->assertEquals(301, $response->getStatusCode());
public function testHttp404()
$response = $this->call($this->createRequest('GET', '/foobar'));
$this->assertEquals(404, $response->getStatusCode());