update 1.0.8.0
Commits for version update
This commit is contained in:
33
vendor/maatwebsite/excel/tests/Readers/ReaderTest.php
vendored
Normal file
33
vendor/maatwebsite/excel/tests/Readers/ReaderTest.php
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Mockery as m;
|
||||
use Maatwebsite\Excel\Readers\LaravelExcelReader;
|
||||
use Maatwebsite\Excel\Classes;
|
||||
|
||||
class ReaderTest extends TestCase {
|
||||
|
||||
/**
|
||||
* Setup
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
// Set excel class
|
||||
$this->excel = App::make('phpexcel');
|
||||
|
||||
// Set writer class
|
||||
$this->reader = App::make('excel.reader');
|
||||
$this->reader->injectExcel($this->excel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the excel injection
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function testExcelInjection()
|
||||
{
|
||||
$this->assertEquals($this->excel, $this->reader->getExcel());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user