Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions tests/Command/SearchAlbumCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public function setUp()
{
$command = new SearchAlbumCommand();

// $musicInfo = $this->musicInfo = $this->createMock(\Pbxg33k\MusicInfo\MusicInfo::class);
//
// $command->setMusicInfo($musicInfo);

$this->commandTester = new CommandTester($command);

parent::setUp();
Expand All @@ -41,17 +37,6 @@ public function setUp()
*/
public function willSearchAlbumOnMultipleServices()
{
// $this->musicInfo->expects($this->once())
// ->method('doSearch')
// ->willReturn([
// 'vocadb' => [
// $this->createTestAlbum('vocadb')
// ],
// 'spotify' => [
// $this->createTestAlbum('spotify')
// ]
// ]);

$this->commandTester->execute([
'album' => 'Tell Your World'
]);
Expand All @@ -68,14 +53,6 @@ public function willSearchArtistOnlyOnSelectedService()
{
$service = 'vocadb';

// $this->musicInfo->expects($this->once())
// ->method('doSearch')
// ->willReturn([
// $service => [
// $this->createTestAlbum($service)
// ]
// ]);

$this->commandTester->execute([
'album' => 'Tell Your World',
'service' => $service
Expand Down
23 changes: 0 additions & 23 deletions tests/Command/SearchArtistCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public function setUp()
{
$command = new SearchArtistCommand();

// $musicInfo = $this->musicInfo = $this->createMock(\Pbxg33k\MusicInfo\MusicInfo::class);
//
// $command->setMusicInfo($musicInfo);

$this->commandTester = new CommandTester($command);

parent::setUp();
Expand All @@ -41,17 +37,6 @@ public function setUp()
*/
public function willSearchArtistOnMultipleServices()
{
// $this->musicInfo->expects($this->once())
// ->method('doSearch')
// ->willReturn([
// 'vocadb' => [
// $this->createTestArtist('vocadb')
// ],
// 'spotify' => [
// $this->createTestArtist('spotify')
// ]
// ]);

$this->commandTester->execute([
'artist' => 'livetune'
]);
Expand All @@ -68,14 +53,6 @@ public function willSearchArtistOnlyOnSelectedService()
{
$service = 'vocadb';

// $this->musicInfo->expects($this->once())
// ->method('doSearch')
// ->willReturn([
// $service => [
// $this->createTestArtist($service)
// ]
// ]);

$this->commandTester->execute([
'artist' => 'livetune',
'service' => $service
Expand Down
22 changes: 0 additions & 22 deletions tests/Command/SearchTrackCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ public function setUp()
{
$command = new SearchTrackCommand();

// $musicInfo = $this->musicInfo = $this->createMock(\Pbxg33k\MusicInfo\MusicInfo::class);
//
// $command->setMusicInfo($musicInfo);

$this->commandTester = new CommandTester($command);

parent::setUp();
Expand All @@ -40,16 +36,6 @@ public function setUp()
*/
public function willSearchTrackOnMultipleServices()
{
// $this->musicInfo->expects($this->once())
// ->method('doSearch')
// ->willReturn([
// 'vocadb' => [
// $this->createTestTrack('vocadb')
// ],
// 'spotify'=> [
// $this->createTestTrack('spotify')
// ]
// ]);

$this->commandTester->execute([
'track' => 'Tell Your World'
Expand All @@ -67,14 +53,6 @@ public function willSearchTrackOnlyOnSelectedService()
{
$service = 'vocadb';

// $this->musicInfo->expects($this->once())
// ->method('doSearch')
// ->willReturn([
// $service => [
// $this->createTestTrack($service)
// ]
// ]);

$this->commandTester->execute([
'track' => 'Tell Your World',
'service' => $service
Expand Down