Skip to content

Commit bad4b69

Browse files
committed
Update framework
1 parent 99fa512 commit bad4b69

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/Entities/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php namespace Tatter\Files\Entities;
22

3-
use CodeIgniter\Entity;
3+
use CodeIgniter\Entity\Entity;
44
use CodeIgniter\Files\Exceptions\FileNotFoundException;
55
use Config\Mimes;
66
use Tatter\Files\Structures\FileObject;

tests/_support/FeatureTestCase.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?php namespace Tests\Support;
22

33
use CodeIgniter\Config\Factories;
4+
use CodeIgniter\Test\FeatureTestTrait;
45
use Config\Services;
6+
use Myth\Auth\Test\AuthTestTrait;
57
use Tatter\Files\Models\FileModel;
68
use Tests\Support\Models\UserModel;
79

810
class FeatureTestCase extends FilesTestCase
911
{
10-
use \CodeIgniter\Test\FeatureTestTrait;
11-
use \Myth\Auth\Test\AuthTestTrait;
12+
use AuthTestTrait, FeatureTestTrait;
1213

1314
/**
1415
* If present, will override application

tests/feature/DisplayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function testSearches(string $keyword)
124124
$result = $this->get('files');
125125

126126
$result->assertStatus(200);
127-
$content = $result->response->getBody();
127+
$content = $result->response()->getBody();
128128

129129
if (strpos($content, $keyword) !== false)
130130
{

tests/feature/PermissionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function testAuthenticatedAddOnlyWithValidFile()
179179
->withHeaders(['X-Requested-With' => 'XMLHttpRequest'])
180180
->post('files/upload');
181181

182-
$this->assertEquals('', $result->response->getBody());
182+
$this->assertEquals('', $result->response()->getBody());
183183
}
184184

185185
public function testProctorListsAllFiles()

tests/unit/ControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use CodeIgniter\Config\Config;
44
use CodeIgniter\Files\Exceptions\FileNotFoundException;
5+
use CodeIgniter\Test\ControllerTestTrait;
56
use Tatter\Files\Controllers\Files;
67
use Tatter\Files\Entities\File;
78
use Tatter\Files\Exceptions\FilesException;
@@ -11,7 +12,7 @@
1112

1213
class ControllerTest extends FilesTestCase
1314
{
14-
use \CodeIgniter\Test\ControllerTester;
15+
use ControllerTestTrait;
1516

1617
/**
1718
* Our Controller set by the trait

0 commit comments

Comments
 (0)