|
@@ 103-109 (lines=7) @@
|
| 100 |
|
]); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
public function testExecuteIpInvalid() |
| 104 |
|
{ |
| 105 |
|
$this->environmentHelper->method('isRemoteIpValid')->willReturn(false); |
| 106 |
|
|
| 107 |
|
$result = $this->classToTest->execute(); |
| 108 |
|
$this->assertInstanceOf(Raw::class, $result); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
public function testExecuteKeyInvalid() |
| 112 |
|
{ |
|
@@ 111-118 (lines=8) @@
|
| 108 |
|
$this->assertInstanceOf(Raw::class, $result); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
public function testExecuteKeyInvalid() |
| 112 |
|
{ |
| 113 |
|
$this->environmentHelper->method('isRemoteIpValid')->willReturn(true); |
| 114 |
|
$this->toolkitHelper->method('isKeyValid')->willReturn(false); |
| 115 |
|
|
| 116 |
|
$result = $this->classToTest->execute(); |
| 117 |
|
$this->assertInstanceOf(Raw::class, $result); |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
public function testExecute() |
| 121 |
|
{ |
|
@@ 120-127 (lines=8) @@
|
| 117 |
|
$this->assertInstanceOf(Raw::class, $result); |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
public function testExecute() |
| 121 |
|
{ |
| 122 |
|
$this->environmentHelper->method('isRemoteIpValid')->willReturn(true); |
| 123 |
|
$this->toolkitHelper->method('isKeyValid')->willReturn(true); |
| 124 |
|
|
| 125 |
|
$result = $this->classToTest->execute(); |
| 126 |
|
$this->assertInstanceOf(Raw::class, $result); |
| 127 |
|
} |
| 128 |
|
} |
| 129 |
|
|