Skip to content

Feature spotify #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
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