1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Test\FlexiPeeHP; |
4
|
|
|
|
5
|
|
|
use FlexiPeeHP\Banka; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Generated by PHPUnit_SkeletonGenerator on 2016-06-10 at 12:31:59. |
9
|
|
|
*/ |
10
|
|
|
class BankaTest extends FlexiBeeRWTest |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* @var Banka |
14
|
|
|
*/ |
15
|
|
|
protected $object; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* Sets up the fixture, for example, opens a network connection. |
19
|
|
|
* This method is called before a test is executed. |
20
|
|
|
*/ |
21
|
|
|
protected function setUp(): void |
22
|
|
|
{ |
23
|
|
|
$this->object = new Banka; |
24
|
|
|
} |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* Tears down the fixture, for example, closes a network connection. |
28
|
|
|
* This method is called after a test is executed. |
29
|
|
|
*/ |
30
|
|
|
protected function tearDown(): void |
31
|
|
|
{ |
32
|
|
|
|
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* Gives You data able to insert into current evidence |
37
|
|
|
* |
38
|
|
|
* @param string $code custom record code |
39
|
|
|
* |
40
|
|
|
* @return array |
41
|
|
|
*/ |
42
|
|
|
public function getDataForInsert($code = 'UnitTest') |
43
|
|
|
{ |
44
|
|
|
$dataForInsert = parent::getDataForInsert($code); |
45
|
|
|
$loader = new \FlexiPeeHP\FlexiBeeRO(null, |
46
|
|
|
['evidence' => 'bankovni-ucet']); |
47
|
|
|
$bankCodeRaw = $loader->getColumnsFromFlexibee([ |
48
|
|
|
'kod'], ['limit' => 1]); |
49
|
|
|
$dataForInsert['banka'] = \FlexiPeeHP\FlexiBeeRO::code($bankCodeRaw[0]['kod']); |
50
|
|
|
$dataForInsert['typPohybuK'] = 'typPohybu.prijem'; |
51
|
|
|
return $dataForInsert; |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @covers FlexiPeeHP\Banka::stahnoutVypisyOnline |
56
|
|
|
*/ |
57
|
|
|
public function testStahnoutVypisyOnline() |
58
|
|
|
{ |
59
|
|
|
$this->assertInternalType('boolean', |
|
|
|
|
60
|
|
|
$this->object->stahnoutVypisyOnline()); |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @covers FlexiPeeHP\Banka::automatickeParovani |
65
|
|
|
*/ |
66
|
|
|
public function testAutomatickeParovani() |
67
|
|
|
{ |
68
|
|
|
$this->assertInternalType('boolean', |
69
|
|
|
$this->object->automatickeParovani()); |
70
|
|
|
} |
71
|
|
|
} |
72
|
|
|
|
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.