Code Duplication    Length = 7-7 lines in 3 locations

Tests/Integration/EloquentBlockRepositoryTest.php 3 locations

@@ 95-101 (lines=7) @@
92
        $this->assertEquals('test-block', $block->name);
93
    }
94
95
    public function it_makes_name_unique()
96
    {
97
        $this->block->create(['name' => 'test block']);
98
        $block = $this->block->create(['name' => 'test block']);
99
100
        $this->assertEquals('test-block-1', $block->name);
101
    }
102
103
    /** @test */
104
    public function it_increments_name_if_not_unique()
@@ 116-122 (lines=7) @@
113
    }
114
115
    /** @test */
116
    public function it_updates_block_without_name_change()
117
    {
118
        $block = $this->block->create(['name' => 'test block']);
119
        $this->block->update($block, ['name' => 'test-block']);
120
121
        $this->assertEquals($block->name, 'test-block');
122
    }
123
124
    /** @test */
125
    public function it_updates_block_with_name_change()
@@ 125-131 (lines=7) @@
122
    }
123
124
    /** @test */
125
    public function it_updates_block_with_name_change()
126
    {
127
        $block = $this->block->create(['name' => 'test block']);
128
        $this->block->update($block, ['name' => 'my awesome block']);
129
130
        $this->assertEquals($block->name, 'my-awesome-block');
131
    }
132
133
    /** @test */
134
    public function it_returns_empty_string_if_block_doesnt_exist()