get('/library/tipitaka/165-123/read?channel='.Str::uuid()) ->assertNotFound(); }); it('returns 404 when the channel is not a uuid', function () { $this->get('/library/tipitaka/165-123/read?channel=not-a-uuid') ->assertNotFound(); }); it('returns 404 when the id is malformed', function () { $this->get('/library/tipitaka/abc/read?channel='.makeChannel(makeStudio('me'), 'c')) ->assertNotFound(); }); it('returns 404 when the paragraph is not a chapter', function () { $this->get('/library/tipitaka/99999-1/read?channel='.makeChannel(makeStudio('me'), 'c')) ->assertNotFound(); });