diff --git a/tests/CI3Compatible/Core/Loader/ModelLoaderTest.php b/tests/CI3Compatible/Core/Loader/ModelLoaderTest.php index c192601..a23fd87 100644 --- a/tests/CI3Compatible/Core/Loader/ModelLoaderTest.php +++ b/tests/CI3Compatible/Core/Loader/ModelLoaderTest.php @@ -37,6 +37,20 @@ public function test_load_one_model(): void ); } + public function test_load_two_models(): void + { + $this->loader->load(['news_model', 'shop/shop_model']); + + $this->assertInstanceOf( + 'App\Models\News_model', + $this->controller->news_model + ); + $this->assertInstanceOf( + 'App\Models\Shop\Shop_model', + $this->controller->shop_model + ); + } + public function test_load_one_model_twice(): void { $this->loader->load('news_model');