Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class DeleteTest extends TestCase |
||
9 | { |
||
10 | const TOKEN = 'UploadedFileToken'; |
||
11 | |||
12 | /** @var Delete */ |
||
13 | private $query; |
||
14 | |||
15 | protected function setUp(): void |
||
16 | { |
||
17 | $this->query = new Delete( |
||
18 | self::TOKEN |
||
19 | ); |
||
20 | } |
||
21 | |||
22 | public function testGetFieldsPath() |
||
23 | { |
||
24 | $fields = $this->query->getFields(); |
||
25 | |||
26 | $this->assertArrayHasKey('token', $fields); |
||
27 | |||
28 | $this->assertSame(self::TOKEN, $fields['token']); |
||
29 | } |
||
30 | |||
31 | public function testGetAction() |
||
34 | } |
||
35 | |||
36 | public function testGetMethod() |
||
37 | { |
||
38 | $this->assertSame(QueryInterface::POST, $this->query->getMethod()); |
||
39 | } |
||
40 | |||
41 | public function testCreateResult() |
||
42 | { |
||
43 | $this->assertInstanceOf('Dokobit\Gateway\Result\File\DeleteResult', $this->query->createResult()); |
||
44 | } |
||
45 | |||
46 | public function testHasValidationConstraints() |
||
53 | ); |
||
54 | } |
||
55 | } |
||
56 |