Completed
Push — master ( 379c63...bb81c5 )
by Rafal
22s
created

FactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateSpotifyApiAuth() 0 6 1
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
}