diff --git a/framework/core/tests/Flarum/Api/Handler/FloodingExceptionHandlerTest.php b/framework/core/tests/Flarum/Api/Handler/FloodingExceptionHandlerTest.php index 9399b1524..504c462b7 100644 --- a/framework/core/tests/Flarum/Api/Handler/FloodingExceptionHandlerTest.php +++ b/framework/core/tests/Flarum/Api/Handler/FloodingExceptionHandlerTest.php @@ -19,4 +19,12 @@ class FloodingExceptionHandlerTest extends TestCase $this->assertFalse($this->handler->manages(new \Exception)); $this->assertTrue($this->handler->manages(new FloodingException)); } + + public function test_it_provides_expected_output() + { + $result = $this->handler->handle(new FloodingException); + + $this->assertEquals(429, $result->getStatus()); + $this->assertEquals([[]], $result->getErrors()); + } }