-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPENEUROPA-2659: Entity browser - improve visual styling. #101
base: master
Are you sure you want to change the base?
Conversation
tests/Behat/MediaContext.php
Outdated
@@ -264,12 +268,14 @@ protected function getConfigContext(): ConfigContext { | |||
* | |||
* @param string $file_name | |||
* File name, relative to Mink 'files_path' location. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file name is no longer relative to the files_path (Ignore this if you take my previous comment into account)
tests/Behat/MediaContext.php
Outdated
@@ -119,7 +119,9 @@ public function createMediaDocuments(TableNode $table): void { | |||
// Retrieve the url table from the test scenario. | |||
$files = $table->getColumnsHash(); | |||
foreach ($files as $properties) { | |||
$file = $this->createFileEntity($properties['file']); | |||
$file_name = basename($properties['file']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could handle this inside the createFileEntity method to avoid duplicating the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, why not.
The first commit is from the Event integration, but I need this solution for testing in EWCMS since there the files are not directly in fixtures, but in separate subfolders.