| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class SuperCacheInvalidationHelperTest extends TestCase |
||
| 10 | { |
||
| 11 | protected SuperCacheInvalidationHelper $helper; |
||
| 12 | |||
| 13 | protected function setUp(): void |
||
| 17 | } |
||
| 18 | |||
| 19 | public function testInsertInvalidationEvent(): void |
||
| 20 | { |
||
| 21 | // Mock DB insert |
||
| 22 | DB::shouldReceive('table->insertGetId')->once()->andReturn(1); |
||
| 23 | |||
| 24 | $this->helper->insertInvalidationEvent('tag', 'test_tag', 'Test reason', 0); |
||
| 25 | |||
| 26 | // Assertions are handled by Mockery expectations |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testInsertInvalidationEventWithAssociations(): void |
||
| 42 | ] |
||
| 43 | ); |
||
| 48 |