Passed
Pull Request — master (#1)
by Rafal
01:47
created

FactoryTest::testCreateSpotifyApiAuth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace SpotifyApiConnectTest\Integration;
5
6
7
use PHPUnit\Framework\TestCase;
8
use SpotifyApiConnect\Application\SpotifyApiAuthInterface;
9
use SpotifyApiConnect\Factory;
10
11
class FactoryTest extends TestCase
12
{
13
    public function testCreateSpotifyApiAuth()
14
    {
15
        $factory = new Factory();
16
        $spotifyApiAuth = $factory->createSpotifyApiAuth();
17
        $this->assertInstanceOf(SpotifyApiAuthInterface::class, $spotifyApiAuth);
18
        $this->assertNotEmpty($spotifyApiAuth->getAuthorizeUrlForPlaylistModifyPublic());
19
    }
20
}