for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CWP\Search\Tests;
use SilverStripe\Dev\FunctionalTest;
class CwpSearchPageControllerTest extends FunctionalTest
{
protected $usesDatabase = true;
public function testIndex()
$this->autoFollowRedirection = false;
$result = $this->get('/search');
$this->assertSame(302, $result->getStatusCode());
$this->assertContains('SearchForm', $result->getHeader('Location'));
}