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:
jygaulier
2019-05-28 15:32:57 +02:00
committed by GitHub
7 changed files with 72 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ class LazaretController extends Controller
*
* @param Request $request The current request
*
* @return Response
* @return String
*/
public function listElement(Request $request)
{

View File

@@ -25,7 +25,7 @@ class Notifier implements NotifierInterface
private $logger;
/** @var integer */
private $timeout = 1;
private $timeout = 10;
public function __construct(\ZMQSocket $socket, LoggerInterface $logger)
{

View File

@@ -152,6 +152,7 @@ class ApplicationTest extends \PhraseanetTestCase
$sessionId = null;
$app->post('/prod/upload/', function (Application $app) use (&$sessionId) {
$sessionId = $app['session']->getId();
return "";
});
$client = new Client($app);

View File

@@ -6,6 +6,7 @@ main:
maintenance: false
key: ''
api_require_ssl: true
delete-account-require-email-confirmation: true
database:
host: 'sql-host'
port: 3306
@@ -212,3 +213,35 @@ embed_bundle:
document:
player: flexpaper
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

View File

@@ -6,6 +6,7 @@ main:
maintenance: false
key: ''
api_require_ssl: true
delete-account-require-email-confirmation: true
database:
host: 'sql-host'
port: 3306
@@ -212,3 +213,35 @@ embed_bundle:
document:
player: flexpaper
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

View File

@@ -34,7 +34,7 @@ then
mv config/configuration.yml{,.backup}
rm -f config/configuration-compiled.php
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
update)
./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
./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:generate-js-fixtures $VERBOSITY

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB