luyatests\core\base\BaseBootstrapTest::testCustomBootstrapHasModule PHP Method

testCustomBootstrapHasModule() public method

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