fixed TransfersTest import step..
This commit is contained in:
		@@ -81,8 +81,8 @@ class TransfersTest extends FeatureTestCase
 | 
			
		||||
        \Excel::fake();
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
             ->get(route('transfers.export'))
 | 
			
		||||
             ->assertStatus(200);
 | 
			
		||||
            ->get(route('transfers.export'))
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        \Excel::assertDownloaded(
 | 
			
		||||
            \Str::filename(trans_choice('general.transfers', 2)) . '.xlsx',
 | 
			
		||||
@@ -101,10 +101,10 @@ class TransfersTest extends FeatureTestCase
 | 
			
		||||
        \Excel::fake();
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
             ->post(
 | 
			
		||||
                 route('bulk-actions.action', ['group' => 'banking', 'type' => 'transfers']),
 | 
			
		||||
                 ['handle' => 'export', 'selected' => [$transfers->random()->id]]
 | 
			
		||||
             )
 | 
			
		||||
            ->post(
 | 
			
		||||
                route('bulk-actions.action', ['group' => 'banking', 'type' => 'transfers']),
 | 
			
		||||
                ['handle' => 'export', 'selected' => [$transfers->random()->id]]
 | 
			
		||||
            )
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        \Excel::assertDownloaded(
 | 
			
		||||
@@ -120,16 +120,16 @@ class TransfersTest extends FeatureTestCase
 | 
			
		||||
        \Excel::fake();
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
             ->post(
 | 
			
		||||
                 route('transfers.import'),
 | 
			
		||||
                 [
 | 
			
		||||
                     'import' => UploadedFile::fake()->createWithContent(
 | 
			
		||||
                         'transfers.xlsx',
 | 
			
		||||
                         File::get(public_path('files/import/transfers.xlsx'))
 | 
			
		||||
                     ),
 | 
			
		||||
                 ]
 | 
			
		||||
             )
 | 
			
		||||
             ->assertStatus(302);
 | 
			
		||||
            ->post(
 | 
			
		||||
                route('transfers.import'),
 | 
			
		||||
                [
 | 
			
		||||
                    'import' => UploadedFile::fake()->createWithContent(
 | 
			
		||||
                        'transfers.xlsx',
 | 
			
		||||
                        File::get(public_path('files/import/transfers.xlsx'))
 | 
			
		||||
                    ),
 | 
			
		||||
                ]
 | 
			
		||||
            )
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        \Excel::assertImported('transfers.xlsx');
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user