@@ -18,25 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "mbid" : "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d", |
|
23 | - "tmid" : 735610, |
|
24 | - "name" : "The Beatles", |
|
25 | - "sortName" : "Beatles, The", |
|
26 | - "disambiguation" : "John, Paul, George and Ringo", |
|
27 | - "url" : "https://www.setlist.fm/setlists/the-beatles-23d6a88b.html" |
|
28 | - } |
|
29 | - EOD |
|
30 | - , |
|
31 | - true |
|
32 | - ); |
|
33 | - |
|
34 | - $artist = Artist::fromApi($apiData); |
|
35 | - $this->assertSame('The Beatles', $artist->getName()); |
|
36 | - $this->assertSame('Beatles, The', $artist->getSortName()); |
|
37 | - $this->assertSame('John, Paul, George and Ringo', $artist->getDisambiguation()); |
|
38 | - $this->assertSame('b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d', $artist->getMbid()); |
|
39 | - $this->assertSame(735610, $artist->getTmid()); |
|
40 | - $this->assertSame('https://www.setlist.fm/setlists/the-beatles-23d6a88b.html', $artist->getUrl()); |
|
41 | - } |
|
42 | -} |
@@ -18,25 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "mbid" : "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d", |
|
23 | - "tmid" : 735610, |
|
24 | - "name" : "The Beatles", |
|
25 | - "sortName" : "Beatles, The", |
|
26 | - "disambiguation" : "John, Paul, George and Ringo", |
|
27 | - "url" : "https://www.setlist.fm/setlists/the-beatles-23d6a88b.html" |
|
28 | - } |
|
29 | - EOD |
|
30 | - , |
|
31 | - true |
|
32 | - ); |
|
33 | - |
|
34 | - $artist = Artist::fromApi($apiData); |
|
35 | - $this->assertSame('The Beatles', $artist->getName()); |
|
36 | - $this->assertSame('Beatles, The', $artist->getSortName()); |
|
37 | - $this->assertSame('John, Paul, George and Ringo', $artist->getDisambiguation()); |
|
38 | - $this->assertSame('b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d', $artist->getMbid()); |
|
39 | - $this->assertSame(735610, $artist->getTmid()); |
|
40 | - $this->assertSame('https://www.setlist.fm/setlists/the-beatles-23d6a88b.html', $artist->getUrl()); |
|
41 | - } |
|
42 | -} |
@@ -18,31 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "id" : "5357527", |
|
23 | - "name" : "Hollywood", |
|
24 | - "stateCode" : "CA", |
|
25 | - "state" : "California", |
|
26 | - "coords" : { |
|
27 | - "long" : -118.3267434, |
|
28 | - "lat" : 34.0983425 |
|
29 | - }, |
|
30 | - "country" : { |
|
31 | - "code" : "US", |
|
32 | - "name" : "United States" |
|
33 | - } |
|
34 | - } |
|
35 | - EOD |
|
36 | - , |
|
37 | - true |
|
38 | - ); |
|
39 | - |
|
40 | - $city = City::fromApi($apiData); |
|
41 | - $this->assertSame(5357527, $city->getId()); |
|
42 | - $this->assertSame('Hollywood', $city->getName()); |
|
43 | - $this->assertSame('California', $city->getState()); |
|
44 | - $this->assertNotNull($city->getCounty()); |
|
45 | - $this->assertNotNull($city->getGeo()); |
|
46 | - $this->assertSame('CA', $city->getStateCode()); |
|
47 | - } |
|
48 | -} |
@@ -18,31 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "id" : "5357527", |
|
23 | - "name" : "Hollywood", |
|
24 | - "stateCode" : "CA", |
|
25 | - "state" : "California", |
|
26 | - "coords" : { |
|
27 | - "long" : -118.3267434, |
|
28 | - "lat" : 34.0983425 |
|
29 | - }, |
|
30 | - "country" : { |
|
31 | - "code" : "US", |
|
32 | - "name" : "United States" |
|
33 | - } |
|
34 | - } |
|
35 | - EOD |
|
36 | - , |
|
37 | - true |
|
38 | - ); |
|
39 | - |
|
40 | - $city = City::fromApi($apiData); |
|
41 | - $this->assertSame(5357527, $city->getId()); |
|
42 | - $this->assertSame('Hollywood', $city->getName()); |
|
43 | - $this->assertSame('California', $city->getState()); |
|
44 | - $this->assertNotNull($city->getCounty()); |
|
45 | - $this->assertNotNull($city->getGeo()); |
|
46 | - $this->assertSame('CA', $city->getStateCode()); |
|
47 | - } |
|
48 | -} |
@@ -18,17 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "code" : "US", |
|
23 | - "name" : "United States" |
|
24 | - } |
|
25 | - EOD |
|
26 | - , |
|
27 | - true |
|
28 | - ); |
|
29 | - |
|
30 | - $country = Country::fromApi($apiData); |
|
31 | - $this->assertSame('US', $country->getCode()); |
|
32 | - $this->assertSame('United States', $country->getName()); |
|
33 | - } |
|
34 | -} |
@@ -18,17 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "code" : "US", |
|
23 | - "name" : "United States" |
|
24 | - } |
|
25 | - EOD |
|
26 | - , |
|
27 | - true |
|
28 | - ); |
|
29 | - |
|
30 | - $country = Country::fromApi($apiData); |
|
31 | - $this->assertSame('US', $country->getCode()); |
|
32 | - $this->assertSame('United States', $country->getName()); |
|
33 | - } |
|
34 | -} |
@@ -18,17 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "long" : -118.3267434, |
|
23 | - "lat" : 34.0983425 |
|
24 | - } |
|
25 | - EOD |
|
26 | - , |
|
27 | - true |
|
28 | - ); |
|
29 | - |
|
30 | - $geo = Geo::fromApi($apiData); |
|
31 | - $this->assertSame(34.0983425, $geo->getLatitude()); |
|
32 | - $this->assertSame(-118.3267434, $geo->getLongitude()); |
|
33 | - } |
|
34 | -} |
@@ -18,17 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "long" : -118.3267434, |
|
23 | - "lat" : 34.0983425 |
|
24 | - } |
|
25 | - EOD |
|
26 | - , |
|
27 | - true |
|
28 | - ); |
|
29 | - |
|
30 | - $geo = Geo::fromApi($apiData); |
|
31 | - $this->assertSame(34.0983425, $geo->getLatitude()); |
|
32 | - $this->assertSame(-118.3267434, $geo->getLongitude()); |
|
33 | - } |
|
34 | -} |
@@ -19,117 +19,3 @@ |
||
19 | 19 | { |
20 | 20 | $apiData = json_decode( |
21 | 21 | <<<'EOD' |
22 | - { |
|
23 | - "id" : "63de4613", |
|
24 | - "versionId" : "7be1aaa0", |
|
25 | - "eventDate" : "23-08-1964", |
|
26 | - "lastUpdated" : "2013-10-20T05:18:08.000+0000", |
|
27 | - "artist" : { |
|
28 | - "mbid" : "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d", |
|
29 | - "tmid" : 735610, |
|
30 | - "name" : "The Beatles", |
|
31 | - "sortName" : "Beatles, The", |
|
32 | - "disambiguation" : "", |
|
33 | - "url" : "https://www.setlist.fm/setlists/the-beatles-23d6a88b.html" |
|
34 | - }, |
|
35 | - "venue" : { |
|
36 | - "id" : "33d62cf9", |
|
37 | - "name" : "Hollywood Bowl", |
|
38 | - "city" : { |
|
39 | - "id" : "5368361", |
|
40 | - "name" : "Los Angeles", |
|
41 | - "state" : "California", |
|
42 | - "stateCode" : "CA", |
|
43 | - "coords" : { |
|
44 | - "lat" : 34.052, |
|
45 | - "long" : -118.244 |
|
46 | - }, |
|
47 | - "country" : { |
|
48 | - "code" : "US", |
|
49 | - "name" : "United States" |
|
50 | - } |
|
51 | - }, |
|
52 | - "url" : "https://www.setlist.fm/venue/hollywood-bowl-los-angeles-ca-usa-33d62cf9.html" |
|
53 | - }, |
|
54 | - "tour" : { |
|
55 | - "name" : "North American Tour 1964" |
|
56 | - }, |
|
57 | - "sets" : { |
|
58 | - "set" : [ { |
|
59 | - "song" : [ { |
|
60 | - "name" : "Twist and Shout", |
|
61 | - "cover" : { |
|
62 | - "mbid" : "f18eac60-48d2-4d2b-b432-e43ce7e31d36", |
|
63 | - "name" : "The Top Notes", |
|
64 | - "sortName" : "Top Notes, The", |
|
65 | - "url" : "https://www.setlist.fm/setlists/the-top-notes-53d433dd.html" |
|
66 | - } |
|
67 | - }, { |
|
68 | - "name" : "You Can't Do That" |
|
69 | - }, { |
|
70 | - "name" : "All My Loving" |
|
71 | - }, { |
|
72 | - "name" : "She Loves You" |
|
73 | - }, { |
|
74 | - "name" : "Things We Said Today" |
|
75 | - }, { |
|
76 | - "name" : "Roll Over Beethoven", |
|
77 | - "cover" : { |
|
78 | - "mbid" : "592a3b6d-c42b-4567-99c9-ecf63bd66499", |
|
79 | - "tmid" : 734540, |
|
80 | - "name" : "Chuck Berry", |
|
81 | - "sortName" : "Berry, Chuck", |
|
82 | - "disambiguation" : "", |
|
83 | - "url" : "https://www.setlist.fm/setlists/chuck-berry-63d6a2b7.html" |
|
84 | - } |
|
85 | - }, { |
|
86 | - "name" : "Can't Buy Me Love" |
|
87 | - }, { |
|
88 | - "name" : "If I Fell" |
|
89 | - }, { |
|
90 | - "name" : "I Want to Hold Your Hand" |
|
91 | - }, { |
|
92 | - "name" : "Boys", |
|
93 | - "cover" : { |
|
94 | - "mbid" : "a8540ea0-1a74-4c22-8b70-1348a77a74a0", |
|
95 | - "name" : "The Shirelles", |
|
96 | - "sortName" : "Shirelles, The", |
|
97 | - "disambiguation" : "", |
|
98 | - "url" : "https://www.setlist.fm/setlists/the-shirelles-bd69d7a.html" |
|
99 | - } |
|
100 | - }, { |
|
101 | - "name" : "A Hard Day's Night" |
|
102 | - }, { |
|
103 | - "name" : "Long Tall Sally", |
|
104 | - "cover" : { |
|
105 | - "mbid" : "95c2339b-8277-49a6-9aaf-08d8eeeaa0be", |
|
106 | - "tmid" : 735520, |
|
107 | - "name" : "Little Richard", |
|
108 | - "sortName" : "Little Richard", |
|
109 | - "disambiguation" : "", |
|
110 | - "url" : "https://www.setlist.fm/setlists/little-richard-4bd6af2e.html" |
|
111 | - } |
|
112 | - } ] |
|
113 | - } ] |
|
114 | - }, |
|
115 | - "info" : "Recorded and published as 'The Beatles at the Hollywood Bowl'", |
|
116 | - "url" : "https://www.setlist.fm/setlist/the-beatles/1964/hollywood-bowl-los-angeles-ca-63de4613.html" |
|
117 | - } |
|
118 | - EOD |
|
119 | - , |
|
120 | - true |
|
121 | - ); |
|
122 | - |
|
123 | - $setlist = Setlist::fromApi($apiData); |
|
124 | - $this->assertSame('63de4613', $setlist->getId()); |
|
125 | - $this->assertSame('7be1aaa0', $setlist->getVersionId()); |
|
126 | - $this->assertNotNull($setlist->getVenue()); |
|
127 | - $this->assertNotNull($setlist->getArtist()); |
|
128 | - $this->assertEquals(new DateTime('23-08-1964'), $setlist->getEventDate(), '', 0); |
|
129 | - $this->assertSame('Recorded and published as \'The Beatles at the Hollywood Bowl\'', $setlist->getInfo()); |
|
130 | - $this->assertNotNull($setlist->getSets()); |
|
131 | - $this->assertNotNull($setlist->getTour()); |
|
132 | - $this->assertEquals(new DateTime('2013-10-20T05:18:08.000+0000'), $setlist->getUpdateDate(), '', 0); |
|
133 | - $this->assertSame('https://www.setlist.fm/setlist/the-beatles/1964/hollywood-bowl-los-angeles-ca-63de4613.html', $setlist->getUrl()); |
|
134 | - } |
|
135 | -} |
@@ -19,117 +19,3 @@ |
||
19 | 19 | { |
20 | 20 | $apiData = json_decode( |
21 | 21 | <<<'EOD' |
22 | - { |
|
23 | - "id" : "63de4613", |
|
24 | - "versionId" : "7be1aaa0", |
|
25 | - "eventDate" : "23-08-1964", |
|
26 | - "lastUpdated" : "2013-10-20T05:18:08.000+0000", |
|
27 | - "artist" : { |
|
28 | - "mbid" : "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d", |
|
29 | - "tmid" : 735610, |
|
30 | - "name" : "The Beatles", |
|
31 | - "sortName" : "Beatles, The", |
|
32 | - "disambiguation" : "", |
|
33 | - "url" : "https://www.setlist.fm/setlists/the-beatles-23d6a88b.html" |
|
34 | - }, |
|
35 | - "venue" : { |
|
36 | - "id" : "33d62cf9", |
|
37 | - "name" : "Hollywood Bowl", |
|
38 | - "city" : { |
|
39 | - "id" : "5368361", |
|
40 | - "name" : "Los Angeles", |
|
41 | - "state" : "California", |
|
42 | - "stateCode" : "CA", |
|
43 | - "coords" : { |
|
44 | - "lat" : 34.052, |
|
45 | - "long" : -118.244 |
|
46 | - }, |
|
47 | - "country" : { |
|
48 | - "code" : "US", |
|
49 | - "name" : "United States" |
|
50 | - } |
|
51 | - }, |
|
52 | - "url" : "https://www.setlist.fm/venue/hollywood-bowl-los-angeles-ca-usa-33d62cf9.html" |
|
53 | - }, |
|
54 | - "tour" : { |
|
55 | - "name" : "North American Tour 1964" |
|
56 | - }, |
|
57 | - "sets" : { |
|
58 | - "set" : [ { |
|
59 | - "song" : [ { |
|
60 | - "name" : "Twist and Shout", |
|
61 | - "cover" : { |
|
62 | - "mbid" : "f18eac60-48d2-4d2b-b432-e43ce7e31d36", |
|
63 | - "name" : "The Top Notes", |
|
64 | - "sortName" : "Top Notes, The", |
|
65 | - "url" : "https://www.setlist.fm/setlists/the-top-notes-53d433dd.html" |
|
66 | - } |
|
67 | - }, { |
|
68 | - "name" : "You Can't Do That" |
|
69 | - }, { |
|
70 | - "name" : "All My Loving" |
|
71 | - }, { |
|
72 | - "name" : "She Loves You" |
|
73 | - }, { |
|
74 | - "name" : "Things We Said Today" |
|
75 | - }, { |
|
76 | - "name" : "Roll Over Beethoven", |
|
77 | - "cover" : { |
|
78 | - "mbid" : "592a3b6d-c42b-4567-99c9-ecf63bd66499", |
|
79 | - "tmid" : 734540, |
|
80 | - "name" : "Chuck Berry", |
|
81 | - "sortName" : "Berry, Chuck", |
|
82 | - "disambiguation" : "", |
|
83 | - "url" : "https://www.setlist.fm/setlists/chuck-berry-63d6a2b7.html" |
|
84 | - } |
|
85 | - }, { |
|
86 | - "name" : "Can't Buy Me Love" |
|
87 | - }, { |
|
88 | - "name" : "If I Fell" |
|
89 | - }, { |
|
90 | - "name" : "I Want to Hold Your Hand" |
|
91 | - }, { |
|
92 | - "name" : "Boys", |
|
93 | - "cover" : { |
|
94 | - "mbid" : "a8540ea0-1a74-4c22-8b70-1348a77a74a0", |
|
95 | - "name" : "The Shirelles", |
|
96 | - "sortName" : "Shirelles, The", |
|
97 | - "disambiguation" : "", |
|
98 | - "url" : "https://www.setlist.fm/setlists/the-shirelles-bd69d7a.html" |
|
99 | - } |
|
100 | - }, { |
|
101 | - "name" : "A Hard Day's Night" |
|
102 | - }, { |
|
103 | - "name" : "Long Tall Sally", |
|
104 | - "cover" : { |
|
105 | - "mbid" : "95c2339b-8277-49a6-9aaf-08d8eeeaa0be", |
|
106 | - "tmid" : 735520, |
|
107 | - "name" : "Little Richard", |
|
108 | - "sortName" : "Little Richard", |
|
109 | - "disambiguation" : "", |
|
110 | - "url" : "https://www.setlist.fm/setlists/little-richard-4bd6af2e.html" |
|
111 | - } |
|
112 | - } ] |
|
113 | - } ] |
|
114 | - }, |
|
115 | - "info" : "Recorded and published as 'The Beatles at the Hollywood Bowl'", |
|
116 | - "url" : "https://www.setlist.fm/setlist/the-beatles/1964/hollywood-bowl-los-angeles-ca-63de4613.html" |
|
117 | - } |
|
118 | - EOD |
|
119 | - , |
|
120 | - true |
|
121 | - ); |
|
122 | - |
|
123 | - $setlist = Setlist::fromApi($apiData); |
|
124 | - $this->assertSame('63de4613', $setlist->getId()); |
|
125 | - $this->assertSame('7be1aaa0', $setlist->getVersionId()); |
|
126 | - $this->assertNotNull($setlist->getVenue()); |
|
127 | - $this->assertNotNull($setlist->getArtist()); |
|
128 | - $this->assertEquals(new DateTime('23-08-1964'), $setlist->getEventDate(), '', 0); |
|
129 | - $this->assertSame('Recorded and published as \'The Beatles at the Hollywood Bowl\'', $setlist->getInfo()); |
|
130 | - $this->assertNotNull($setlist->getSets()); |
|
131 | - $this->assertNotNull($setlist->getTour()); |
|
132 | - $this->assertEquals(new DateTime('2013-10-20T05:18:08.000+0000'), $setlist->getUpdateDate(), '', 0); |
|
133 | - $this->assertSame('https://www.setlist.fm/setlist/the-beatles/1964/hollywood-bowl-los-angeles-ca-63de4613.html', $setlist->getUrl()); |
|
134 | - } |
|
135 | -} |
@@ -18,72 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "name": "First set", |
|
23 | - "encore": 3, |
|
24 | - "song" : [ { |
|
25 | - "name" : "Twist and Shout", |
|
26 | - "cover" : { |
|
27 | - "mbid" : "f18eac60-48d2-4d2b-b432-e43ce7e31d36", |
|
28 | - "name" : "The Top Notes", |
|
29 | - "sortName" : "Top Notes, The", |
|
30 | - "url" : "https://www.setlist.fm/setlists/the-top-notes-53d433dd.html" |
|
31 | - } |
|
32 | - }, { |
|
33 | - "name" : "You Can't Do That" |
|
34 | - }, { |
|
35 | - "name" : "All My Loving" |
|
36 | - }, { |
|
37 | - "name" : "She Loves You" |
|
38 | - }, { |
|
39 | - "name" : "Things We Said Today" |
|
40 | - }, { |
|
41 | - "name" : "Roll Over Beethoven", |
|
42 | - "cover" : { |
|
43 | - "mbid" : "592a3b6d-c42b-4567-99c9-ecf63bd66499", |
|
44 | - "tmid" : 734540, |
|
45 | - "name" : "Chuck Berry", |
|
46 | - "sortName" : "Berry, Chuck", |
|
47 | - "disambiguation" : "", |
|
48 | - "url" : "https://www.setlist.fm/setlists/chuck-berry-63d6a2b7.html" |
|
49 | - } |
|
50 | - }, { |
|
51 | - "name" : "Can't Buy Me Love" |
|
52 | - }, { |
|
53 | - "name" : "If I Fell" |
|
54 | - }, { |
|
55 | - "name" : "I Want to Hold Your Hand" |
|
56 | - }, { |
|
57 | - "name" : "Boys", |
|
58 | - "cover" : { |
|
59 | - "mbid" : "a8540ea0-1a74-4c22-8b70-1348a77a74a0", |
|
60 | - "name" : "The Shirelles", |
|
61 | - "sortName" : "Shirelles, The", |
|
62 | - "disambiguation" : "", |
|
63 | - "url" : "https://www.setlist.fm/setlists/the-shirelles-bd69d7a.html" |
|
64 | - } |
|
65 | - }, { |
|
66 | - "name" : "A Hard Day's Night" |
|
67 | - }, { |
|
68 | - "name" : "Long Tall Sally", |
|
69 | - "cover" : { |
|
70 | - "mbid" : "95c2339b-8277-49a6-9aaf-08d8eeeaa0be", |
|
71 | - "tmid" : 735520, |
|
72 | - "name" : "Little Richard", |
|
73 | - "sortName" : "Little Richard", |
|
74 | - "disambiguation" : "", |
|
75 | - "url" : "https://www.setlist.fm/setlists/little-richard-4bd6af2e.html" |
|
76 | - } |
|
77 | - } ] |
|
78 | - } |
|
79 | - EOD |
|
80 | - , |
|
81 | - true |
|
82 | - ); |
|
83 | - |
|
84 | - $set = Set::fromApi($apiData); |
|
85 | - $this->assertSame('First set', $set->getName()); |
|
86 | - $this->assertCount(12, $set->getSongs()); |
|
87 | - $this->assertSame(3, $set->getEncore()); |
|
88 | - } |
|
89 | -} |
@@ -18,72 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "name": "First set", |
|
23 | - "encore": 3, |
|
24 | - "song" : [ { |
|
25 | - "name" : "Twist and Shout", |
|
26 | - "cover" : { |
|
27 | - "mbid" : "f18eac60-48d2-4d2b-b432-e43ce7e31d36", |
|
28 | - "name" : "The Top Notes", |
|
29 | - "sortName" : "Top Notes, The", |
|
30 | - "url" : "https://www.setlist.fm/setlists/the-top-notes-53d433dd.html" |
|
31 | - } |
|
32 | - }, { |
|
33 | - "name" : "You Can't Do That" |
|
34 | - }, { |
|
35 | - "name" : "All My Loving" |
|
36 | - }, { |
|
37 | - "name" : "She Loves You" |
|
38 | - }, { |
|
39 | - "name" : "Things We Said Today" |
|
40 | - }, { |
|
41 | - "name" : "Roll Over Beethoven", |
|
42 | - "cover" : { |
|
43 | - "mbid" : "592a3b6d-c42b-4567-99c9-ecf63bd66499", |
|
44 | - "tmid" : 734540, |
|
45 | - "name" : "Chuck Berry", |
|
46 | - "sortName" : "Berry, Chuck", |
|
47 | - "disambiguation" : "", |
|
48 | - "url" : "https://www.setlist.fm/setlists/chuck-berry-63d6a2b7.html" |
|
49 | - } |
|
50 | - }, { |
|
51 | - "name" : "Can't Buy Me Love" |
|
52 | - }, { |
|
53 | - "name" : "If I Fell" |
|
54 | - }, { |
|
55 | - "name" : "I Want to Hold Your Hand" |
|
56 | - }, { |
|
57 | - "name" : "Boys", |
|
58 | - "cover" : { |
|
59 | - "mbid" : "a8540ea0-1a74-4c22-8b70-1348a77a74a0", |
|
60 | - "name" : "The Shirelles", |
|
61 | - "sortName" : "Shirelles, The", |
|
62 | - "disambiguation" : "", |
|
63 | - "url" : "https://www.setlist.fm/setlists/the-shirelles-bd69d7a.html" |
|
64 | - } |
|
65 | - }, { |
|
66 | - "name" : "A Hard Day's Night" |
|
67 | - }, { |
|
68 | - "name" : "Long Tall Sally", |
|
69 | - "cover" : { |
|
70 | - "mbid" : "95c2339b-8277-49a6-9aaf-08d8eeeaa0be", |
|
71 | - "tmid" : 735520, |
|
72 | - "name" : "Little Richard", |
|
73 | - "sortName" : "Little Richard", |
|
74 | - "disambiguation" : "", |
|
75 | - "url" : "https://www.setlist.fm/setlists/little-richard-4bd6af2e.html" |
|
76 | - } |
|
77 | - } ] |
|
78 | - } |
|
79 | - EOD |
|
80 | - , |
|
81 | - true |
|
82 | - ); |
|
83 | - |
|
84 | - $set = Set::fromApi($apiData); |
|
85 | - $this->assertSame('First set', $set->getName()); |
|
86 | - $this->assertCount(12, $set->getSongs()); |
|
87 | - $this->assertSame(3, $set->getEncore()); |
|
88 | - } |
|
89 | -} |
@@ -18,37 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "name" : "Roll Over Beethoven", |
|
23 | - "info": "This is a song", |
|
24 | - "tape": 1, |
|
25 | - "cover" : { |
|
26 | - "mbid" : "592a3b6d-c42b-4567-99c9-ecf63bd66499", |
|
27 | - "tmid" : 734540, |
|
28 | - "name" : "Chuck Berry", |
|
29 | - "sortName" : "Berry, Chuck", |
|
30 | - "disambiguation" : "", |
|
31 | - "url" : "https://www.setlist.fm/setlists/chuck-berry-63d6a2b7.html" |
|
32 | - }, |
|
33 | - "with" : { |
|
34 | - "mbid" : "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d", |
|
35 | - "tmid" : 735610, |
|
36 | - "name" : "The Beatles", |
|
37 | - "sortName" : "Beatles, The", |
|
38 | - "disambiguation" : "", |
|
39 | - "url" : "https://www.setlist.fm/setlists/the-beatles-23d6a88b.html" |
|
40 | - } |
|
41 | - } |
|
42 | - EOD |
|
43 | - , |
|
44 | - true |
|
45 | - ); |
|
46 | - |
|
47 | - $song = Song::fromApi($apiData); |
|
48 | - $this->assertSame('Roll Over Beethoven', $song->getName()); |
|
49 | - $this->assertSame('This is a song', $song->getInfo()); |
|
50 | - $this->assertNotNull($song->getCover()); |
|
51 | - $this->assertNotNull($song->getFeaturings()); |
|
52 | - $this->assertTrue($song->isTaped()); |
|
53 | - } |
|
54 | -} |
@@ -18,37 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "name" : "Roll Over Beethoven", |
|
23 | - "info": "This is a song", |
|
24 | - "tape": 1, |
|
25 | - "cover" : { |
|
26 | - "mbid" : "592a3b6d-c42b-4567-99c9-ecf63bd66499", |
|
27 | - "tmid" : 734540, |
|
28 | - "name" : "Chuck Berry", |
|
29 | - "sortName" : "Berry, Chuck", |
|
30 | - "disambiguation" : "", |
|
31 | - "url" : "https://www.setlist.fm/setlists/chuck-berry-63d6a2b7.html" |
|
32 | - }, |
|
33 | - "with" : { |
|
34 | - "mbid" : "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d", |
|
35 | - "tmid" : 735610, |
|
36 | - "name" : "The Beatles", |
|
37 | - "sortName" : "Beatles, The", |
|
38 | - "disambiguation" : "", |
|
39 | - "url" : "https://www.setlist.fm/setlists/the-beatles-23d6a88b.html" |
|
40 | - } |
|
41 | - } |
|
42 | - EOD |
|
43 | - , |
|
44 | - true |
|
45 | - ); |
|
46 | - |
|
47 | - $song = Song::fromApi($apiData); |
|
48 | - $this->assertSame('Roll Over Beethoven', $song->getName()); |
|
49 | - $this->assertSame('This is a song', $song->getInfo()); |
|
50 | - $this->assertNotNull($song->getCover()); |
|
51 | - $this->assertNotNull($song->getFeaturings()); |
|
52 | - $this->assertTrue($song->isTaped()); |
|
53 | - } |
|
54 | -} |
@@ -18,15 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "name" : "North American Tour 1964" |
|
23 | - } |
|
24 | - EOD |
|
25 | - , |
|
26 | - true |
|
27 | - ); |
|
28 | - |
|
29 | - $tour = Tour::fromApi($apiData); |
|
30 | - $this->assertSame('North American Tour 1964', $tour->getName()); |
|
31 | - } |
|
32 | -} |
@@ -18,15 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "name" : "North American Tour 1964" |
|
23 | - } |
|
24 | - EOD |
|
25 | - , |
|
26 | - true |
|
27 | - ); |
|
28 | - |
|
29 | - $tour = Tour::fromApi($apiData); |
|
30 | - $this->assertSame('North American Tour 1964', $tour->getName()); |
|
31 | - } |
|
32 | -} |
@@ -18,23 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "userId": "Metal-42", |
|
23 | - "fullname": "Max", |
|
24 | - "about": "Some dummy text", |
|
25 | - "website": "http://example.com", |
|
26 | - "url": "https://www.setlist.fm/user/Metal-42" |
|
27 | - } |
|
28 | - EOD |
|
29 | - , |
|
30 | - true |
|
31 | - ); |
|
32 | - |
|
33 | - $user = User::fromApi($apiData); |
|
34 | - $this->assertSame('Metal-42', $user->getId()); |
|
35 | - $this->assertSame('Some dummy text', $user->getAbout()); |
|
36 | - $this->assertSame('Max', $user->getFullname()); |
|
37 | - $this->assertSame('http://example.com', $user->getWebsite()); |
|
38 | - $this->assertSame('https://www.setlist.fm/user/Metal-42', $user->getUrl()); |
|
39 | - } |
|
40 | -} |
@@ -18,23 +18,3 @@ |
||
18 | 18 | { |
19 | 19 | $apiData = json_decode( |
20 | 20 | <<<'EOD' |
21 | - { |
|
22 | - "userId": "Metal-42", |
|
23 | - "fullname": "Max", |
|
24 | - "about": "Some dummy text", |
|
25 | - "website": "http://example.com", |
|
26 | - "url": "https://www.setlist.fm/user/Metal-42" |
|
27 | - } |
|
28 | - EOD |
|
29 | - , |
|
30 | - true |
|
31 | - ); |
|
32 | - |
|
33 | - $user = User::fromApi($apiData); |
|
34 | - $this->assertSame('Metal-42', $user->getId()); |
|
35 | - $this->assertSame('Some dummy text', $user->getAbout()); |
|
36 | - $this->assertSame('Max', $user->getFullname()); |
|
37 | - $this->assertSame('http://example.com', $user->getWebsite()); |
|
38 | - $this->assertSame('https://www.setlist.fm/user/Metal-42', $user->getUrl()); |
|
39 | - } |
|
40 | -} |