luyatests\core\base\BaseBootstrapTest::testCustomBootstrapHasModule PHP Метод

testCustomBootstrapHasModule() публичный Метод

    public function testCustomBootstrapHasModule()
    {
        $bs = new CustomBootstrap();
        $bs->bootstrap(Yii::$app);
        $this->assertTrue($bs->hasModule('unitmodule'));
        $this->assertFalse($bs->hasModule('notexistingmodule'));
    }