Skip to content

Commit

Permalink
Move directory runtime into Support. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Nov 18, 2023
1 parent c6e0e7b commit 482d47e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions tests/AssetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testBootstrapAssetRegister(): void
$this->assertCount(1, $view->assetBundles);
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[BootstrapAsset::class]);

$result = $view->renderFile(__DIR__ . '/support/main.php');
$result = $view->renderFile(__DIR__ . '/Support/main.php');

$this->assertStringContainsString('bootstrap.css', $result);
}
Expand Down Expand Up @@ -67,7 +67,7 @@ public function testBootstrapCdnAssetRegister(): void
$this->assertCount(1, $view->assetBundles);
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[BootstrapCdnAsset::class]);

$result = $view->renderFile(__DIR__ . '/support/main.php');
$result = $view->renderFile(__DIR__ . '/Support/main.php');

$this->assertStringContainsString(
<<<HTML
Expand Down Expand Up @@ -103,7 +103,7 @@ public function testBootstrapPluginAssetRegister(): void
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[BootstrapPluginAsset::class]);
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[BootstrapAsset::class]);

$result = $view->renderFile(__DIR__ . '/support/main.php');
$result = $view->renderFile(__DIR__ . '/Support/main.php');

$this->assertStringContainsString('bootstrap.css', $result);
$this->assertStringContainsString('bootstrap.bundle.js', $result);
Expand Down Expand Up @@ -135,7 +135,7 @@ public function testBootstrapPluginCdnAssetRegister(): void
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[BootstrapPluginCdnAsset::class]);
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[BootstrapCdnAsset::class]);

$result = $view->renderFile(__DIR__ . '/support/main.php');
$result = $view->renderFile(__DIR__ . '/Support/main.php');

$this->assertStringContainsString(
<<<HTML
Expand Down Expand Up @@ -174,7 +174,7 @@ public function testPopperAssetRegister(): void
$this->assertCount(1, $view->assetBundles);
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[PopperAsset::class]);

$result = $view->renderFile(__DIR__ . '/support/main.php');
$result = $view->renderFile(__DIR__ . '/Support/main.php');

$this->assertStringContainsString('popper.js', $result);
}
Expand Down Expand Up @@ -202,7 +202,7 @@ public function testPopperCdnAssetRegister(): void
$this->assertCount(1, $view->assetBundles);
$this->assertInstanceOf(AssetBundle::class, $view->assetBundles[PopperCdnAsset::class]);

$result = $view->renderFile(__DIR__ . '/support/main.php');
$result = $view->renderFile(__DIR__ . '/Support/main.php');

$this->assertStringContainsString(
<<<HTML
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ protected function mockWebApplication(): void
'@npm' => '@app/node_modules',
'@public' => '@app/public',
'@vendor' => '@app/vendor',
'@web' => __DIR__ . '/runtime',
'@web' => __DIR__ . '/Support/runtime',
],
'basePath' => dirname(__DIR__),
'vendorPath' => dirname(__DIR__) . '/vendor',
'components' => [
'assetManager' => [
'basePath' => __DIR__ . '/runtime',
'basePath' => __DIR__ . '/Support/runtime',
],
'request' => [
'cookieValidationKey' => 'wefJDF8sfdsfSDefwqdxj9oq',
Expand All @@ -59,6 +59,6 @@ protected function tearDown(): void
{
parent::tearDown();
$this->destroyApplication();
Assert::removeFilesFromDirectory(__DIR__ . '/runtime');
Assert::removeFilesFromDirectory(__DIR__ . '/Support/runtime');
}
}

0 comments on commit 482d47e

Please sign in to comment.