Skip to content

Commit

Permalink
fix windows element test
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Jan 11, 2021
1 parent 7a754d8 commit 0db7474
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/template-editor/tests/ElementAdminTest.php
Expand Up @@ -3,6 +3,7 @@
namespace Pushword\TemplateEditor\Tests;

use Pushword\Admin\Tests\AbstractAdminTest;
use Pushword\TemplateEditor\ElementRepository;

class ElementAdminTest extends AbstractAdminTest
{
Expand All @@ -15,9 +16,10 @@ public function testAdmin()
$client->request('GET', '/admin/template/list');
$this->assertResponseIsSuccessful();

/* doesn't work on windows
$client->request('GET', '/admin/template/edit/d75972ad5182b92398cb571e2e223deb'); ///pushword.piedweb.com/page/_content.html.twig
$repo = new ElementRepository(self::$kernel->getProjectDir().'/templates');
$element = $repo->getAll()[0];

$client->request('GET', '/admin/template/edit/'.$element->getEncodedPath()); ///pushword.piedweb.com/page/_content.html.twig
$this->assertResponseIsSuccessful();
*/
}
}

0 comments on commit 0db7474

Please sign in to comment.