Skip to content

Commit 6675683

Browse files
committed
Add Load::view to BaseController
1 parent 1e495ab commit 6675683

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/base_controller.php

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public function test_input_single_file() {
3232
$controller = new DummyController();
3333
$this->assertSame($controller->input->file('stuff'), ['name' => '1.pdf']);
3434
}
35+
36+
public function test_load_view() {
37+
$controller = new DummyController();
38+
$view_content = $controller->load->view('multiply.php', ['two' => 2, 'three' => 3]);
39+
$this->assertEquals($view_content, 6);
40+
}
3541
}
3642

3743
class DummyController extends BaseController {

0 commit comments

Comments
 (0)