Skip to content

Commit

Permalink
Fix tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Aug 25, 2023
1 parent c6711c2 commit 1f8ac35
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions tests/classes/BlockManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Cms\Classes\Theme;
use System\Tests\Bootstrap\PluginTestCase;
use Winter\Blocks\Classes\BlockManager;
use Winter\Storm\Filesystem\PathResolver;
use Winter\Storm\Support\Facades\Config;
use Winter\Storm\Support\Facades\Event;

Expand Down Expand Up @@ -40,20 +41,20 @@ public function testCanRegisterBlocksDirectly()

$this->assertIsArray($this->manager->getRegisteredBlocks());
$this->assertEquals([
'container' => $this->fixturePath . 'container.block',
'button_group' => $this->pluginPath . 'button_group.block',
'button' => $this->pluginPath . 'button.block',
'cards' => $this->pluginPath . 'cards.block',
'code' => $this->pluginPath . 'code.block',
'columns_two' => $this->pluginPath . 'columns_two.block',
'divider' => $this->pluginPath . 'divider.block',
'image' => $this->pluginPath . 'image.block',
'plaintext' => $this->pluginPath . 'plaintext.block',
'richtext' => $this->pluginPath . 'richtext.block',
'title' => $this->pluginPath . 'title.block',
'video' => $this->pluginPath . 'video.block',
'vimeo' => $this->pluginPath . 'vimeo.block',
'youtube' => $this->pluginPath . 'youtube.block',
'container' => PathResolver::standardize($this->fixturePath . 'container.block'),
'button_group' => PathResolver::standardize($this->pluginPath . 'button_group.block'),
'button' => PathResolver::standardize($this->pluginPath . 'button.block'),
'cards' => PathResolver::standardize($this->pluginPath . 'cards.block'),
'code' => PathResolver::standardize($this->pluginPath . 'code.block'),
'columns_two' => PathResolver::standardize($this->pluginPath . 'columns_two.block'),
'divider' => PathResolver::standardize($this->pluginPath . 'divider.block'),
'image' => PathResolver::standardize($this->pluginPath . 'image.block'),
'plaintext' => PathResolver::standardize($this->pluginPath . 'plaintext.block'),
'richtext' => PathResolver::standardize($this->pluginPath . 'richtext.block'),
'title' => PathResolver::standardize($this->pluginPath . 'title.block'),
'video' => PathResolver::standardize($this->pluginPath . 'video.block'),
'vimeo' => PathResolver::standardize($this->pluginPath . 'vimeo.block'),
'youtube' => PathResolver::standardize($this->pluginPath . 'youtube.block'),
], $this->manager->getRegisteredBlocks());
}
}

0 comments on commit 1f8ac35

Please sign in to comment.