Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Test\Unit;
- use Tests\TestCase
- use Illuminate\Foundation\Testing\RefreshDatabase;
- public function testExcelReportUpload()
- {
- $this->visit('/report/create')
- ->type('Test Name', 'name')
- ->attach($absolutePathToFile, 'template_file')
- ->press('submit')
- ->seePageIs('/report')
- ->see('Report added successfully');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement