~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to tests/integration/FaultTest.php

  • Committer: Dan Garner
  • Date: 2015-03-26 14:08:33 UTC
  • Revision ID: git-v1:70d14044444f8dc5d602b99890d59dea46d9470c
Moved web servable files to web folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * Spring Signage Ltd - http://www.springsignage.com
4
 
 * Copyright (C) 2015 Spring Signage Ltd
5
 
 * (AuditLogTest.php)
6
 
 */
7
 
 
8
 
namespace Xibo\Tests\Integration;
9
 
 
10
 
/**
11
 
 * Class FaultTest
12
 
 * @package Xibo\Tests\Integration
13
 
 */
14
 
class FaultTest extends \Xibo\Tests\LocalWebTestCase
15
 
{
16
 
    /**
17
 
     * Collect data
18
 
     * This test modifies headers and we therefore need to run in a separate process
19
 
     * @runInSeparateProcess
20
 
     * @preserveGlobalState disabled
21
 
     */
22
 
    public function testCollect()
23
 
    {
24
 
        $this->client->get('/fault/collect', ['outputLog' => 'on']);
25
 
 
26
 
        $this->assertSame(200, $this->client->response->status());
27
 
    }
28
 
 
29
 
    /**
30
 
     * test turning debug on
31
 
     */
32
 
    public function testDebugOn()
33
 
    {
34
 
        $this->client->put('/fault/debug/on');
35
 
        $this->assertSame(200, $this->client->response->status());
36
 
    }
37
 
 
38
 
    /**
39
 
     * test turning debug off
40
 
     */
41
 
    public function testDebugOff()
42
 
    {
43
 
        $this->client->put('/fault/debug/off');
44
 
        $this->assertSame(200, $this->client->response->status());
45
 
    }
46
 
}