Shopware\PluginCreator\Services\WorkingDirectoryProvider\RootDetector\ShopwareRootDetector::isRoot PHP Method

isRoot() public method

public isRoot ( string $path ) : boolean
$path string
return boolean
    public function isRoot($path)
    {
        if ($this->validateDirectories($path) && $this->validateFiles($path)) {
            return true;
        }
        return false;
    }

Usage Example

 public function testPathIsNotShopwareRoot()
 {
     $return = $this->SUT->isRoot('/home/not_shopware');
     $this->assertFalse($return);
 }