mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-29 22:16:01 +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);
|
|
}
|
|
}
|