Unit test fixes

This commit is contained in:
Simon Sessingø
2021-03-21 08:02:41 +01:00
parent 2306ab47db
commit 38ce2e6bba
2 changed files with 10 additions and 27 deletions

View File

@@ -4,43 +4,36 @@ class ResourceController implements \Pecee\Controllers\IResourceController
public function index() : ?string
{
echo 'index';
return null;
return 'index';
}
public function show($id) : ?string
{
echo 'show ' . $id;
return null;
return 'show ' . $id;
}
public function store() : ?string
{
echo 'store';
return null;
return 'store';
}
public function create() : ?string
{
echo 'create';
return null;
return 'create';
}
public function edit($id) : ?string
{
echo 'edit ' . $id;
return null;
return 'edit ' . $id;
}
public function update($id) : ?string
{
echo 'update ' . $id;
return null;
return 'update ' . $id;
}
public function destroy($id) : ?string
{
echo 'destroy ' . $id;
return null;
return 'destroy ' . $id;
}
}