Completed
Pull Request — master (#288)
by
unknown
05:42
created

EntriesListTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A testShouldGetEntriesListUnfiltered() 0 11 1
1
<?php
2
3
namespace Moip\Tests\Resource;
4
5
use Moip\Tests\TestCase;
6
7
class EntriesListTest extends TestCase
8
{
9
    public function testShouldGetEntriesListUnfiltered()
10
    {
11
        $this->mockHttpSession($this->body_entries_list);
12
13
        $entries = $this->moip->entries()->getList();
14
15
        $this->assertEquals(67958700, $entries->getSummary()->amount);
16
        $this->assertEquals('https://sandbox.moip.com.br/v2/entries?offset=0&limit=20', $entries->getLinks()->previous->href);
17
        $this->assertNotNull($entries->getEntries());
18
        $this->assertEquals('ENT-PA0KQG8CCI4O', $entries->getEntries()[0]->id);
19
    }
20
}
21