1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 20:04:24 +02:00

Initial Driver Support (No Extender)

This commit is contained in:
Matthew Kilgore
2020-11-16 22:45:24 -05:00
parent e1c61a0e85
commit 4574fa6290
20 changed files with 451 additions and 27 deletions

View File

@@ -66,6 +66,24 @@ class ShowTest extends TestCase
$this->assertEquals(200, $response->getStatusCode());
}
/**
* @test
*/
public function author_can_see_discussion_via_slug()
{
// Note that here, the slug doesn't actually have to match the real slug
// since the default slugging strategy only takes the numerical part into account
$response = $this->send(
$this->request('GET', '/api/discussions/1-fdsafdsajfsakf', [
'authenticatedAs' => 2,
])->withQueryParams([
"bySlug" => true
])
);
$this->assertEquals(200, $response->getStatusCode());
}
/**
* @test
*/