Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class DummyActiveRecordTest extends TestCase |
||
14 | { |
||
15 | public function testUpdateAllException(): void |
||
16 | { |
||
17 | $dummyClass = new DummyActiveRecord($this->sqliteConnection); |
||
18 | |||
19 | $this->expectException(NotSupportedException::class); |
||
20 | $this->expectExceptionMessage('Yiisoft\ActiveRecord\BaseActiveRecord::updateAll is not supported.'); |
||
21 | |||
22 | $dummyClass->updateAll(['id' => 1]); |
||
23 | } |
||
24 | |||
25 | public function testUpdateAllCountersException(): void |
||
26 | { |
||
27 | $dummyClass = new DummyActiveRecord($this->sqliteConnection); |
||
28 | |||
29 | $this->expectException(NotSupportedException::class); |
||
30 | $this->expectExceptionMessage('Yiisoft\ActiveRecord\BaseActiveRecord::updateAllCounters is not supported'); |
||
31 | |||
32 | $dummyClass->updateAllCounters(['id' => 1]); |
||
33 | } |
||
34 | |||
35 | public function testDeleteAllException(): void |
||
43 | } |
||
44 | } |
||
45 |