add enzyme/axiom interfaces
use axiom/RepositoryInterface in tests and store music add axiom/Models/ModelInterface to TuneCollection
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<?php
|
||||
namespace Tests\Unit\Memory;
|
||||
|
||||
use XaiCorp\AbcParser\Interfaces\Repository;
|
||||
use XaiCorp\AbcParser\Models\Memory\Abc;
|
||||
use XaiCorp\AbcParser\Models\Memory\Person;
|
||||
use XaiCorp\AbcParser\Parser as AbcParser;
|
||||
use Enzyme\Axiom\Repositories\RepositoryInterface;
|
||||
|
||||
class AbcParserTest extends \Codeception\TestCase\Test
|
||||
{
|
||||
@@ -12,7 +14,11 @@ class AbcParserTest extends \Codeception\TestCase\Test
|
||||
public function setUp()
|
||||
{
|
||||
parent::setup();
|
||||
$this->facade = new AbcParser(new Abc());
|
||||
|
||||
$repository = \Mockery::mock(RepositoryInterface::class)
|
||||
->shouldReceive('add')->once()
|
||||
->getMock();
|
||||
$this->facade = new AbcParser(new Abc($repository));
|
||||
}
|
||||
|
||||
private function getValidAbc($filename = '/abc/valid_abc_1.abc')
|
||||
|
||||
Reference in New Issue
Block a user