mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-26 06:29:24 +02:00
21 lines
429 B
PHP
21 lines
429 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);
|
|
}
|
|
|
|
}
|