Code Duplication    Length = 15-15 lines in 2 locations

Tests/Command/ResetCommandTest.php 2 locations

@@ 129-143 (lines=15) @@
126
        );
127
    }
128
129
    public function testResetAndDeleteAllIndexTemplates()
130
    {
131
        $this->resetter->expects($this->once())
132
            ->method('resetAllTemplates')
133
            ->with(true)
134
        ;
135
136
        $this->resetter->expects($this->never())
137
            ->method('resetIndex');
138
139
        $this->command->run(
140
            new ArrayInput(array('--index-template' => null, '--delete-template-indexes' => null)),
141
            new NullOutput()
142
        );
143
    }
144
145
    public function testResetOneIndexTemplate()
146
    {
@@ 161-175 (lines=15) @@
158
        );
159
    }
160
161
    public function testResetAndDeleteOneIndexTemplate()
162
    {
163
        $this->resetter->expects($this->once())
164
            ->method('resetTemplate')
165
            ->with('template name', true)
166
        ;
167
168
        $this->resetter->expects($this->never())
169
            ->method('resetIndex');
170
171
        $this->command->run(
172
            new ArrayInput(array('--index-template' => 'template name', '--delete-template-indexes' => null)),
173
            new NullOutput()
174
        );
175
    }
176
177
    /**
178
     * @expectedException \InvalidArgumentException