|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -use Astrotomic\OpenGraph\StructuredProperties\Image; |
4 |
| -use Astrotomic\OpenGraph\Type; |
5 |
| -use Astrotomic\OpenGraph\Types\Article; |
6 |
| -use Astrotomic\OpenGraph\Types\Book; |
7 | 3 | use Astrotomic\OpenGraph\Types\Music\Album;
|
8 | 4 | use Astrotomic\OpenGraph\Types\Music\Playlist;
|
9 | 5 | use Astrotomic\OpenGraph\Types\Music\RadioStation;
|
10 | 6 | use Astrotomic\OpenGraph\Types\Music\Song;
|
11 |
| -use Astrotomic\OpenGraph\Types\Profile; |
12 |
| -use Astrotomic\OpenGraph\Types\Video\Episode; |
13 |
| -use Astrotomic\OpenGraph\Types\Video\Movie; |
14 |
| -use Astrotomic\OpenGraph\Types\Video\Other; |
15 |
| -use Astrotomic\OpenGraph\Types\Video\TvShow; |
16 |
| -use Astrotomic\OpenGraph\Types\Website; |
17 | 7 |
|
18 | 8 | it('can generate song tags', function () {
|
19 | 9 | $og = Song::make('Title | Example')
|
|
27 | 17 |
|
28 | 18 | ->duration(60 * 1.5)
|
29 | 19 | ->musician('http://www.example.com/musician')
|
30 |
| - ->album('http://www.example.com/album', 1, 4) |
31 |
| - ; |
| 20 | + ->album('http://www.example.com/album', 1, 4); |
32 | 21 |
|
33 |
| - assertMatchesHtmlSnapshot((string)$og); |
| 22 | + assertMatchesHtmlSnapshot((string) $og); |
34 | 23 | })->group('music');
|
35 | 24 |
|
36 | 25 | it('can generate album tags', function () {
|
|
47 | 36 | ->song('http://www.example.com/song2', 1, 2)
|
48 | 37 | ->song('http://www.example.com/song3', 1, 3)
|
49 | 38 | ->song('http://www.example.com/song4', 1, 4)
|
50 |
| - ->releasedAt(new DateTime('2020-06-05')) |
51 |
| - ; |
| 39 | + ->releasedAt(new DateTime('2020-06-05')); |
52 | 40 |
|
53 |
| - assertMatchesHtmlSnapshot((string)$og); |
| 41 | + assertMatchesHtmlSnapshot((string) $og); |
54 | 42 | })->group('music');
|
55 | 43 |
|
56 | 44 | it('can generate playlist tags', function () {
|
|
66 | 54 | ->song('http://www.example.com/song1', 1, 1)
|
67 | 55 | ->song('http://www.example.com/song2', 1, 2)
|
68 | 56 | ->song('http://www.example.com/song3', 1, 3)
|
69 |
| - ->song('http://www.example.com/song4', 1, 4) |
70 |
| - ; |
| 57 | + ->song('http://www.example.com/song4', 1, 4); |
71 | 58 |
|
72 |
| - assertMatchesHtmlSnapshot((string)$og); |
| 59 | + assertMatchesHtmlSnapshot((string) $og); |
73 | 60 | })->group('music');
|
74 | 61 |
|
75 | 62 | it('can generate radiostation tags', function () {
|
|
81 | 68 | ->siteName('Example')
|
82 | 69 | ->image('http://www.example.com/image1.jpg')
|
83 | 70 |
|
84 |
| - ->creator('http://www.example.com/creator') |
85 |
| - ; |
| 71 | + ->creator('http://www.example.com/creator'); |
86 | 72 |
|
87 |
| - assertMatchesHtmlSnapshot((string)$og); |
| 73 | + assertMatchesHtmlSnapshot((string) $og); |
88 | 74 | })->group('music');
|
0 commit comments