Code Duplication    Length = 13-14 lines in 2 locations

tests/ResolvesViewsTest.php 2 locations

@@ 86-98 (lines=13) @@
83
    /**
84
     * @test
85
     */
86
    public function it_can_use_the_config_for_defaults()
87
    {
88
        // Use the default layout.
89
        $this->loadLayout();
90
91
        // Call the route and get the auto view debug information.
92
        $this->call('GET', '/auto-route');
93
94
        $debug = viewResolver()->debug();
95
96
        // Assert.
97
        $this->assertEquals('layout', $debug->layout);
98
    }
99
100
    /**
101
     * @test
@@ 154-167 (lines=14) @@
151
    /**
152
     * @test
153
     */
154
    public function it_can_manually_specify_a_view()
155
    {
156
        // Use the default layout.
157
        $this->loadLayout();
158
159
        // Call the route and get the auto view debug information.
160
        $this->call('GET', '/manual-route');
161
162
        $debug = viewResolver()->debug();
163
164
        // Assert.
165
        $this->assertEquals('test', $debug->view);
166
        $this->assertEquals('manual', $debug->type);
167
    }
168
169
    /**
170
     * @test