use Slim\Http\Request;
use Slim\Http\Response;
-class DeleteLinkTest extends \PHPUnit\Framework\TestCase
+class DeleteLinkTest extends \Shaarli\TestCase
{
/**
* @var string datastore to test write operations
/**
* Test DELETE link endpoint: reach not existing ID.
- *
- * @expectedException \Shaarli\Api\Exceptions\ApiLinkNotFoundException
*/
public function testDeleteLink404()
{
+ $this->expectException(\Shaarli\Api\Exceptions\ApiLinkNotFoundException::class);
+
$id = -1;
$this->assertFalse($this->bookmarkService->exists($id));
$env = Environment::mock([