Skip to content

Commit

Permalink
Rename user-uploads to wordpress-uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lende committed May 22, 2023
1 parent fe62240 commit c44b630
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/env/lib/build-docker-compose-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ function getMounts(
? `user-home:/home/${ hostUsername }`
: `tests-user-home:/home/${ hostUsername }`;

const userUploadsMount =
const wordpressUploadsMount =
wordpressDefault === 'wordpress'
? `user-uploads:/var/www/html/wp-content/uploads`
: `tests-user-uploads:/var/www/html/wp-content/uploads`;
? `wordpress-uploads:/var/www/html/wp-content/uploads`
: `tests-wordpress-uploads:/var/www/html/wp-content/uploads`;

const corePHPUnitMount = `${ path.join(
workDirectoryPath,
Expand All @@ -77,7 +77,7 @@ function getMounts(
coreMount, // Must be first because of some operations later that expect it to be!
corePHPUnitMount,
userHomeMount,
userUploadsMount,
wordpressUploadsMount,
...directoryMounts,
...pluginMounts,
...themeMounts,
Expand Down Expand Up @@ -275,8 +275,8 @@ module.exports = function buildDockerComposeConfig( config ) {
'mysql-test': {},
'user-home': {},
'tests-user-home': {},
'user-uploads': {},
'tests-user-uploads': {},
'wordpress-uploads': {},
'tests-wordpress-uploads': {},
},
};
};
2 changes: 1 addition & 1 deletion packages/env/lib/test/build-docker-compose-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe( 'buildDockerComposeConfig', () => {
'wordpress:/var/www/html', // WordPress root.
'/path/WordPress-PHPUnit/tests/phpunit:/wordpress-phpunit', // WordPress test library,
'user-home:/home/test',
'user-uploads:/var/www/html/wp-content/uploads',
'wordpress-uploads:/var/www/html/wp-content/uploads',
'/path/to/wp-plugins:/var/www/html/wp-content/plugins', // Mapped plugins root.
'/path/to/local/plugin:/var/www/html/wp-content/plugins/test-name', // Mapped plugin.
] );
Expand Down

0 comments on commit c44b630

Please sign in to comment.