File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php namespace Tatter \Files \Entities ;
22
3- use CodeIgniter \Entity ;
3+ use CodeIgniter \Entity \ Entity ;
44use CodeIgniter \Files \Exceptions \FileNotFoundException ;
55use Config \Mimes ;
66use Tatter \Files \Structures \FileObject ;
Original file line number Diff line number Diff line change 11<?php namespace Tests \Support ;
22
33use CodeIgniter \Config \Factories ;
4+ use CodeIgniter \Test \FeatureTestTrait ;
45use Config \Services ;
6+ use Myth \Auth \Test \AuthTestTrait ;
57use Tatter \Files \Models \FileModel ;
68use Tests \Support \Models \UserModel ;
79
810class 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 22
33use CodeIgniter \Config \Config ;
44use CodeIgniter \Files \Exceptions \FileNotFoundException ;
5+ use CodeIgniter \Test \ControllerTestTrait ;
56use Tatter \Files \Controllers \Files ;
67use Tatter \Files \Entities \File ;
78use Tatter \Files \Exceptions \FilesException ;
1112
1213class ControllerTest extends FilesTestCase
1314{
14- use \ CodeIgniter \ Test \ControllerTester ;
15+ use ControllerTestTrait ;
1516
1617 /**
1718 * Our Controller set by the trait
You can’t perform that action at this time.
0 commit comments