Nwidart\Modules\Module::enabled PHP Method

enabled() public method

Determine whether the current module activated.
public enabled ( ) : boolean
return boolean
    public function enabled()
    {
        return $this->active();
    }

Usage Example

Example #1
0
 /** @test */
 public function it_checks_module_enabled_status()
 {
     $this->assertTrue($this->module->enabled());
     $this->assertTrue($this->module->active());
     $this->assertFalse($this->module->notActive());
     $this->assertFalse($this->module->disabled());
 }