mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-16 06:26:27 +02:00
22 lines
465 B
PHP
22 lines
465 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests;
|
|
|
|
use SilverStripe\Dev\FunctionalTest;
|
|
|
|
class FlushRequestFilterTest extends FunctionalTest
|
|
{
|
|
|
|
/**
|
|
* Assert that classes that implement flushable are called
|
|
*/
|
|
public function testImplementorsAreCalled()
|
|
{
|
|
$this->assertFalse(FlushRequestFilterTest\TestFlushable::$flushed);
|
|
|
|
$this->get('?flush=1');
|
|
|
|
$this->assertTrue(FlushRequestFilterTest\TestFlushable::$flushed);
|
|
}
|
|
}
|