Code Duplication    Length = 11-11 lines in 2 locations

Tests/Integration/EloquentBlockRepositoryTest.php 2 locations

@@ 184-194 (lines=11) @@
181
    }
182
183
    /** @test */
184
    public function it_triggers_event_when_block_was_updated()
185
    {
186
        Event::fake();
187
188
        $block = $this->createRandomBlock();
189
        $block = $this->block->update($block, ['name' => 'something else']);
190
191
        Event::assertDispatched(BlockWasUpdated::class, function ($e) use ($block) {
192
            return $e->block->name === $block->name;
193
        });
194
    }
195
196
    /** @test */
197
    public function it_triggers_event_when_block_is_updating()
@@ 197-207 (lines=11) @@
194
    }
195
196
    /** @test */
197
    public function it_triggers_event_when_block_is_updating()
198
    {
199
        Event::fake();
200
201
        $block = $this->createRandomBlock();
202
        $block = $this->block->update($block, ['name' => 'something else']);
203
204
        Event::assertDispatched(BlockIsUpdating::class, function ($e) use ($block) {
205
            return $e->getAttribute('name') === $block->name;
206
        });
207
    }
208
209
    /** @test */
210
    public function it_can_change_data_when_it_is_updating_event()