silverstripe-framework/tests/php/Control/FlushMiddlewareTest.php

20 lines
467 B
PHP
Raw Normal View History

<?php
2016-10-14 03:30:05 +02:00
namespace SilverStripe\Control\Tests;
use SilverStripe\Control\Tests\FlushMiddlewareTest\TestFlushable;
2016-10-14 03:30:05 +02:00
use SilverStripe\Dev\FunctionalTest;
class FlushMiddlewareTest extends FunctionalTest
{
/**
* Assert that classes that implement flushable are called
*/
public function testImplementorsAreCalled()
{
TestFlushable::$flushed = false;
$this->get('?flush=1');
$this->assertTrue(TestFlushable::$flushed);
}
}