From 8ca047d918c89058d3e2116418d024c51020fbe6 Mon Sep 17 00:00:00 2001 From: Oguzhan Uysal Date: Thu, 27 Apr 2017 20:44:24 +0200 Subject: [PATCH] Cleanup --- tests/Command/SearchAlbumCommandTest.php | 23 ----------------------- tests/Command/SearchArtistCommandTest.php | 23 ----------------------- tests/Command/SearchTrackCommandTest.php | 22 ---------------------- 3 files changed, 68 deletions(-) diff --git a/tests/Command/SearchAlbumCommandTest.php b/tests/Command/SearchAlbumCommandTest.php index 6b7c7b8..ff080df 100644 --- a/tests/Command/SearchAlbumCommandTest.php +++ b/tests/Command/SearchAlbumCommandTest.php @@ -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(); @@ -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' ]); @@ -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 diff --git a/tests/Command/SearchArtistCommandTest.php b/tests/Command/SearchArtistCommandTest.php index e85d198..d5902d3 100644 --- a/tests/Command/SearchArtistCommandTest.php +++ b/tests/Command/SearchArtistCommandTest.php @@ -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(); @@ -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' ]); @@ -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 diff --git a/tests/Command/SearchTrackCommandTest.php b/tests/Command/SearchTrackCommandTest.php index e74962d..2e237ca 100644 --- a/tests/Command/SearchTrackCommandTest.php +++ b/tests/Command/SearchTrackCommandTest.php @@ -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(); @@ -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' @@ -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