Platformsh\Cli\Tests\Toolstack\ComposerTest::testBuildComposerMounts PHP Метод

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

    public function testBuildComposerMounts()
    {
        $projectRoot = $this->assertBuildSucceeds('tests/data/apps/composer-mounts', ['copy' => true, 'abslinks' => true]);
        $webRoot = $projectRoot . '/' . self::$config->get('local.web_root');
        $shared = $projectRoot . '/' . self::$config->get('local.shared_dir');
        $buildDir = $projectRoot . '/' . self::$config->get('local.build_dir') . '/default';
        $this->assertFileExists($webRoot . '/js');
        $this->assertFileExists($webRoot . '/css');
        $this->assertFileExists($buildDir . '/cache');
        $this->assertEquals($shared . '/assets/js', readlink($webRoot . '/js'));
        $this->assertEquals($shared . '/assets/css', readlink($webRoot . '/css'));
        $this->assertEquals($shared . '/cache', readlink($buildDir . '/cache'));
    }