mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
20 lines
467 B
PHP
20 lines
467 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests;
|
|
|
|
use SilverStripe\Control\Tests\FlushMiddlewareTest\TestFlushable;
|
|
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);
|
|
}
|
|
}
|