mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Merge pull request #3047 from jygaulier/PHRAS-2605_fix-unittest-bootstrap_4.1
PHRAS-2605_fix-unittest-bootstrap_4.1
This commit is contained in:
@@ -38,7 +38,7 @@ class LazaretController extends Controller
|
|||||||
*
|
*
|
||||||
* @param Request $request The current request
|
* @param Request $request The current request
|
||||||
*
|
*
|
||||||
* @return Response
|
* @return String
|
||||||
*/
|
*/
|
||||||
public function listElement(Request $request)
|
public function listElement(Request $request)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class Notifier implements NotifierInterface
|
|||||||
private $logger;
|
private $logger;
|
||||||
|
|
||||||
/** @var integer */
|
/** @var integer */
|
||||||
private $timeout = 1;
|
private $timeout = 10;
|
||||||
|
|
||||||
public function __construct(\ZMQSocket $socket, LoggerInterface $logger)
|
public function __construct(\ZMQSocket $socket, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ class ApplicationTest extends \PhraseanetTestCase
|
|||||||
$sessionId = null;
|
$sessionId = null;
|
||||||
$app->post('/prod/upload/', function (Application $app) use (&$sessionId) {
|
$app->post('/prod/upload/', function (Application $app) use (&$sessionId) {
|
||||||
$sessionId = $app['session']->getId();
|
$sessionId = $app['session']->getId();
|
||||||
|
return "";
|
||||||
});
|
});
|
||||||
|
|
||||||
$client = new Client($app);
|
$client = new Client($app);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ main:
|
|||||||
maintenance: false
|
maintenance: false
|
||||||
key: ''
|
key: ''
|
||||||
api_require_ssl: true
|
api_require_ssl: true
|
||||||
|
delete-account-require-email-confirmation: true
|
||||||
database:
|
database:
|
||||||
host: 'sql-host'
|
host: 'sql-host'
|
||||||
port: 3306
|
port: 3306
|
||||||
@@ -212,3 +213,35 @@ embed_bundle:
|
|||||||
document:
|
document:
|
||||||
player: flexpaper
|
player: flexpaper
|
||||||
enable-pdfjs: true
|
enable-pdfjs: true
|
||||||
|
geocoding-providers:
|
||||||
|
-
|
||||||
|
name: 'mapBox'
|
||||||
|
enabled: true
|
||||||
|
public-key: ''
|
||||||
|
default-position:
|
||||||
|
- 2.335062
|
||||||
|
- 48.879162
|
||||||
|
default-zoom: 2
|
||||||
|
marker-default-zoom: 11
|
||||||
|
position-fields:
|
||||||
|
-
|
||||||
|
name: GpsCompositePosition
|
||||||
|
type: latlng
|
||||||
|
# -
|
||||||
|
# name: Longitude
|
||||||
|
# type: lng
|
||||||
|
# -
|
||||||
|
# name: Latitude
|
||||||
|
# type: lat
|
||||||
|
video-editor:
|
||||||
|
vttFieldName: VideoTextTrackChapters
|
||||||
|
seekBackwardStep: 1000 # in ms
|
||||||
|
seekForwardStep: 1000 # in ms
|
||||||
|
playbackRates:
|
||||||
|
- 1
|
||||||
|
- '1.5'
|
||||||
|
- 3
|
||||||
|
|
||||||
|
user_account:
|
||||||
|
deleting_policies:
|
||||||
|
email_confirmation: true
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ main:
|
|||||||
maintenance: false
|
maintenance: false
|
||||||
key: ''
|
key: ''
|
||||||
api_require_ssl: true
|
api_require_ssl: true
|
||||||
|
delete-account-require-email-confirmation: true
|
||||||
database:
|
database:
|
||||||
host: 'sql-host'
|
host: 'sql-host'
|
||||||
port: 3306
|
port: 3306
|
||||||
@@ -212,3 +213,35 @@ embed_bundle:
|
|||||||
document:
|
document:
|
||||||
player: flexpaper
|
player: flexpaper
|
||||||
enable-pdfjs: true
|
enable-pdfjs: true
|
||||||
|
geocoding-providers:
|
||||||
|
-
|
||||||
|
name: 'mapBox'
|
||||||
|
enabled: true
|
||||||
|
public-key: ''
|
||||||
|
default-position:
|
||||||
|
- 2.335062
|
||||||
|
- 48.879162
|
||||||
|
default-zoom: 2
|
||||||
|
marker-default-zoom: 11
|
||||||
|
position-fields:
|
||||||
|
-
|
||||||
|
name: GpsCompositePosition
|
||||||
|
type: latlng
|
||||||
|
# -
|
||||||
|
# name: Longitude
|
||||||
|
# type: lng
|
||||||
|
# -
|
||||||
|
# name: Latitude
|
||||||
|
# type: lat
|
||||||
|
video-editor:
|
||||||
|
vttFieldName: VideoTextTrackChapters
|
||||||
|
seekBackwardStep: 1000 # in ms
|
||||||
|
seekForwardStep: 1000 # in ms
|
||||||
|
playbackRates:
|
||||||
|
- 1
|
||||||
|
- '1.5'
|
||||||
|
- 3
|
||||||
|
|
||||||
|
user_account:
|
||||||
|
deleting_policies:
|
||||||
|
email_confirmation: true
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ then
|
|||||||
mv config/configuration.yml{,.backup}
|
mv config/configuration.yml{,.backup}
|
||||||
rm -f config/configuration-compiled.php
|
rm -f config/configuration-compiled.php
|
||||||
fi
|
fi
|
||||||
./bin/setup system:install --email=test@phraseanet.com --password=test --db-user=root --db-template=en --db-password=toor --databox=db_test --appbox=ab_test --server-name=http://127.0.0.1 -y $VERBOSITY
|
./bin/setup system:install --email=test@phraseanet.com --password=test --db-user=root --db-template=en-simple --db-password=toor --databox=db_test --appbox=ab_test --server-name=http://127.0.0.1 -y $VERBOSITY
|
||||||
case "$INSTALL_MODE" in
|
case "$INSTALL_MODE" in
|
||||||
update)
|
update)
|
||||||
./bin/developer ini:reset --email=test@phraseanet.com --password=test --run-patches --no-setup-dbs $VERBOSITY
|
./bin/developer ini:reset --email=test@phraseanet.com --password=test --run-patches --no-setup-dbs $VERBOSITY
|
||||||
@@ -44,5 +44,6 @@ case "$INSTALL_MODE" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
./bin/developer ini:setup-tests-dbs $VERBOSITY
|
./bin/developer ini:setup-tests-dbs $VERBOSITY
|
||||||
./bin/console searchengine:index:create $VERBOSITY
|
./bin/console searchengine:index -ndcp --force $VERBOSITY
|
||||||
./bin/developer phraseanet:regenerate-sqlite $VERBOSITY
|
./bin/developer phraseanet:regenerate-sqlite $VERBOSITY
|
||||||
|
./bin/developer phraseanet:generate-js-fixtures $VERBOSITY
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user