3
* Spring Signage Ltd - http://www.springsignage.com
4
* Copyright (C) 2015 Spring Signage Ltd
8
namespace Xibo\Tests\Integration;
12
* @package Xibo\Tests\Integration
14
class FaultTest extends \Xibo\Tests\LocalWebTestCase
18
* This test modifies headers and we therefore need to run in a separate process
19
* @runInSeparateProcess
20
* @preserveGlobalState disabled
22
public function testCollect()
24
$this->client->get('/fault/collect', ['outputLog' => 'on']);
26
$this->assertSame(200, $this->client->response->status());
30
* test turning debug on
32
public function testDebugOn()
34
$this->client->put('/fault/debug/on');
35
$this->assertSame(200, $this->client->response->status());
39
* test turning debug off
41
public function testDebugOff()
43
$this->client->put('/fault/debug/off');
44
$this->assertSame(200, $this->client->response->status());