mirror of
https://github.com/filegator/filegator.git
synced 2025-08-16 13:04:24 +02:00
Test enhancement (#18)
Wow! Thank you very much for fixing all this. Cheers!
This commit is contained in:
committed by
Milos Stojanovic
parent
c7d88635b4
commit
ea6933883f
@@ -11,6 +11,7 @@
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@@ -19,14 +20,14 @@ class FilesTest extends TestCase
|
||||
{
|
||||
protected $timestamp;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->resetTempDir();
|
||||
|
||||
$this->timestamp = time();
|
||||
}
|
||||
|
||||
public function tearDown(): void
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->resetTempDir();
|
||||
}
|
||||
@@ -234,7 +235,7 @@ class FilesTest extends TestCase
|
||||
$username = 'john@example.com';
|
||||
$this->signIn($username, 'john123');
|
||||
|
||||
$this->expectException(\Exception::class);
|
||||
$this->expectException(Exception::class);
|
||||
|
||||
$this->sendRequest('POST', '/renameitem', [
|
||||
'from' => 'missing.txt',
|
||||
@@ -256,7 +257,7 @@ class FilesTest extends TestCase
|
||||
],
|
||||
];
|
||||
|
||||
$this->expectException(\Exception::class);
|
||||
$this->expectException(Exception::class);
|
||||
|
||||
$this->sendRequest('POST', '/deleteitems', [
|
||||
'items' => $items,
|
||||
@@ -351,7 +352,7 @@ class FilesTest extends TestCase
|
||||
],
|
||||
];
|
||||
|
||||
$this->expectException(\Exception::class);
|
||||
$this->expectException(Exception::class);
|
||||
|
||||
$this->sendRequest('POST', '/copyitems', [
|
||||
'items' => $items,
|
||||
|
Reference in New Issue
Block a user