Completed
Push — master ( daed8c...cf758d )
by Damian
08:03
created

FlushMiddlewareTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A testImplementorsAreCalled() 0 6 1
1
<?php
2
3
namespace SilverStripe\Control\Tests;
4
5
use SilverStripe\Control\Tests\FlushMiddlewareTest\TestFlushable;
6
use SilverStripe\Dev\FunctionalTest;
7
8
class FlushMiddlewareTest extends FunctionalTest
9
{
10
    /**
11
     * Assert that classes that implement flushable are called
12
     */
13
    public function testImplementorsAreCalled()
14
    {
15
        TestFlushable::$flushed = false;
16
        $this->get('?flush=1');
17
        $this->assertTrue(TestFlushable::$flushed);
18
    }
19
}
20