Spaces:
No application file
No application file
mautic / plugins /GrapesJsBuilderBundle /Tests /Functional /Controller /FileManagerControllerFunctionalTest.php
Download plugins/GrapesJsBuilderBundle/Tests/Functional/Controller/FileManagerControllerFunctionalTest.php from chrisbryan17/mautic: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/spaces/chrisbryan17/mautic/resolve/main/plugins/GrapesJsBuilderBundle/Tests/Functional/Controller/FileManagerControllerFunctionalTest.php
- Command line
-
hf download hf://spaces/chrisbryan17/mautic/plugins/GrapesJsBuilderBundle/Tests/Functional/Controller/FileManagerControllerFunctionalTest.php
-
curl -L -o FileManagerControllerFunctionalTest.php https://huggingface.co/spaces/chrisbryan17/mautic/resolve/main/plugins/GrapesJsBuilderBundle/Tests/Functional/Controller/FileManagerControllerFunctionalTest.php
645 Bytes
| declare(strict_types=1); | |
| namespace MauticPlugin\GrapesJsBuilderBundle\Tests\Functional\Controller; | |
| use Mautic\CoreBundle\Test\MauticMysqlTestCase; | |
| use Symfony\Component\HttpFoundation\Response; | |
| final class FileManagerControllerFunctionalTest extends MauticMysqlTestCase | |
| { | |
| public function testAssetsAction(): void | |
| { | |
| $this->client->request('GET', '/s/grapesjsbuilder/assets'); | |
| $response = $this->client->getResponse(); | |
| $this->assertSame(Response::HTTP_OK, $response->getStatusCode()); | |
| $content = json_decode($response->getContent(), true); | |
| $this->assertNotEmpty($content['data']); | |
| } | |
| } | |