Go to...
Form->create('SentenceAnnotation', array(
+ echo $this->Form->create(null, array(
'url' => array('action' => 'show')
));
- echo $this->Form->input(
- 'sentence_id',
- array(
- "type" => "text",
- "label" => "Sentence #"
- )
- );
+ echo $this->Form->control('sentence_id', array(
+ "type" => "text",
+ "label" => "Sentence #"
+ ));
echo $this->Form->button('OK');
echo $this->Form->end();
?>
@@ -83,14 +80,14 @@ public function displaySearchBox()
Search
Form->create('SentenceAnnotation', array(
+ echo $this->Form->create(null, array(
'url' => array('action' => 'search')
));
- echo $this->Form->input(
+ echo $this->Form->control(
'text',
array(
"label" => "",
- "type" => "text"
+ "type" => "number"
)
);
echo $this->Form->button('OK');
@@ -114,13 +111,12 @@ public function displayNewIndexBox($sentenceId)
Add new index
Form->create(
- 'SentenceAnnotation', array(
+ echo $this->Form->create(null, array(
"url" => array("action" => "save")
)
);
echo $this->Form->hidden('sentence_id', ['value' => $sentenceId]);
- echo $this->Form->input('meaning_id', ['type' => 'text']);
+ echo $this->Form->control('meaning_id', ['type' => 'number']);
echo $this->Form->textarea('text', ['cols' => 24, 'rows' => 3]);
echo $this->Form->button('save');
echo $this->Form->end();
@@ -145,8 +141,7 @@ public function displayReplaceBox($stringToReplace)
echo 'Replace
';
$this->Html->script('sentence_annotations.preview.js', array('block' => 'scriptBottom'));
- echo $this->Form->create(
- 'SentenceAnnotation', array(
+ echo $this->Form->create(null, array(
"url" => array("action" => "replace")
)
);
@@ -156,7 +151,7 @@ public function displayReplaceBox($stringToReplace)
'value' => $stringToReplace
]);
echo '';
- echo $this->Form->input('textReplacing', [
+ echo $this->Form->control('textReplacing', [
'id' => 'SentenceAnnotationTextReplacing',
"label" => "Replace ". h($stringToReplace) ." by:"
]);
diff --git a/src/View/Helper/SentencesHelper.php b/src/View/Helper/SentencesHelper.php
index 82227b7813..fd0c3a3561 100644
--- a/src/View/Helper/SentencesHelper.php
+++ b/src/View/Helper/SentencesHelper.php
@@ -317,7 +317,7 @@ private function _displayNewTranslationForm($id)
private function _translationForm($id, $langArray)
{
- $preSelectedLang = $this->request->getSession()->read('contribute_lang');
+ $preSelectedLang = $this->getView()->getRequest()->getSession()->read('contribute_lang');
echo $this->Images->svgIcon(
'translation',
@@ -326,7 +326,7 @@ private function _translationForm($id, $langArray)
)
);
- echo $this->Form->create('Sentence', [
+ echo $this->Form->create(null, [
'id' => 'translation-form',
'url' => [
'controller' => 'sentences',
@@ -491,7 +491,7 @@ public function displayGenericSentence(
$sentenceId = $sentence->id;
$sentenceLang = $sentence->lang;
- $isFavoritePage = ($this->request->params['controller'] == 'Favorites' && $this->request->params['action'] == 'of_user');
+ $isFavoritePage = ($this->getView()->getRequest()->getParam('controller') == 'Favorites' && $this->getView()->getRequest()->getParam('action') == 'of_user');
$classes = array('sentence', $type);
if ($isEditable && $type == 'directTranslation') {
$classes[] = 'editableTranslation';
@@ -551,7 +551,7 @@ public function displayGenericSentence(
echo '
';
}
- if( $isFavoritePage && $this->request->params['pass'][0] == CurrentUser::get('username') ){
+ if( $isFavoritePage && $this->getView()->getRequest()->getParam('pass')[0] == CurrentUser::get('username') ){
echo '
';
$this->Menu->favoriteButton($sentenceId, true, true, true);
echo '
';
diff --git a/src/View/Helper/ShowAllHelper.php b/src/View/Helper/ShowAllHelper.php
index 49091c4391..c79b522580 100644
--- a/src/View/Helper/ShowAllHelper.php
+++ b/src/View/Helper/ShowAllHelper.php
@@ -61,9 +61,9 @@ private function _generateBaseUrl()
// we reconstruct the path
$path ='/';
// language of the interface
- $path .= $this->request->getParam('lang') .'/';
- $path .= Inflector::delimit($this->request->getParam('controller')).'/';
- $path .= $this->request->getParam('action');
+ $path .= $this->getView()->getRequest()->getParam('lang') .'/';
+ $path .= Inflector::delimit($this->getView()->getRequest()->getParam('controller')).'/';
+ $path .= $this->getView()->getRequest()->getParam('action');
return $path;
}
@@ -106,7 +106,7 @@ private function _generateJavascriptUrl($params, $position)
private function _generateSelect($selectedLanguage, $langs, $position)
{
- $params = $this->request->getParam('pass');
+ $params = $this->getView()->getRequest()->getParam('pass');
$javascriptUrl = $this->_generateJavascriptUrl($params, $position);
return $this->_View->element(
diff --git a/src/View/Helper/TagsHelper.php b/src/View/Helper/TagsHelper.php
index ac54425485..1360d9d403 100644
--- a/src/View/Helper/TagsHelper.php
+++ b/src/View/Helper/TagsHelper.php
@@ -188,7 +188,7 @@ public function displayAddTagForm($sentenceId = null)
$this->Html->script('autocompletion.js', ['block' => 'scriptBottom']);
$this->Html->script('tags.add.js', ['block' => 'scriptBottom']);
- echo $this->Form->create('Tag', [
+ echo $this->Form->create(null, [
'id' => 'tag-form',
'url' => ['controller' => 'tags', 'action' => 'add_tag_post'],
'onsubmit' => 'return false'
@@ -200,7 +200,7 @@ public function displayAddTagForm($sentenceId = null)
echo '
';
echo '
';
- echo $this->Form->input('tag_name', [
+ echo $this->Form->control('tag_name', [
'id' => 'TagTagName',
'label' => '',
'lang' => '',
diff --git a/tests/TestCase/Command/CorrectNumberOfSentencesTest.php b/tests/TestCase/Command/CorrectNumberOfSentencesTest.php
index d35b14127f..15693d4b64 100644
--- a/tests/TestCase/Command/CorrectNumberOfSentencesTest.php
+++ b/tests/TestCase/Command/CorrectNumberOfSentencesTest.php
@@ -12,8 +12,8 @@ class CorrectNumberOfSentencesCommandTest extends TestCase {
use ConsoleIntegrationTestTrait;
public $fixtures = array(
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
);
function setUp() {
diff --git a/tests/TestCase/Command/EditLanguagesCommandTest.php b/tests/TestCase/Command/EditLanguagesCommandTest.php
index b3a6b1036c..59d19d6ee9 100644
--- a/tests/TestCase/Command/EditLanguagesCommandTest.php
+++ b/tests/TestCase/Command/EditLanguagesCommandTest.php
@@ -13,19 +13,19 @@ class EditLanguagesCommandTest extends TestCase
use ConsoleIntegrationTestTrait;
public $fixtures = [
- 'app.audios',
- 'app.disabled_audios',
- 'app.contributions',
- 'app.languages',
- 'app.links',
- 'app.reindex_flags',
- 'app.sentences',
- 'app.tags',
- 'app.tags_sentences',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.users_sentences',
+ 'app.Audios',
+ 'app.DisabledAudios',
+ 'app.Contributions',
+ 'app.Languages',
+ 'app.Links',
+ 'app.ReindexFlags',
+ 'app.Sentences',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.UsersSentences',
];
const TESTDIR = TMP . 'edit_languages_tests' . DS;
diff --git a/tests/TestCase/Command/EditLicensesCommandTest.php b/tests/TestCase/Command/EditLicensesCommandTest.php
index 460c2dbb34..f23812c626 100644
--- a/tests/TestCase/Command/EditLicensesCommandTest.php
+++ b/tests/TestCase/Command/EditLicensesCommandTest.php
@@ -13,14 +13,14 @@ class EditLicensesCommandTest extends TestCase
use ConsoleIntegrationTestTrait;
public $fixtures = [
- 'app.sentences',
- 'app.reindex_flags',
- 'app.transcriptions',
- 'app.contributions',
- 'app.tags',
- 'app.tags_sentences',
- 'app.users',
- 'app.users_languages',
+ 'app.Sentences',
+ 'app.ReindexFlags',
+ 'app.Transcriptions',
+ 'app.Contributions',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.Users',
+ 'app.UsersLanguages',
];
const TESTDIR = TMP . 'edit_licenses_tests' . DS;
diff --git a/tests/TestCase/Command/EditOwnersCommandTest.php b/tests/TestCase/Command/EditOwnersCommandTest.php
index 92f9683321..91d5b2edf1 100644
--- a/tests/TestCase/Command/EditOwnersCommandTest.php
+++ b/tests/TestCase/Command/EditOwnersCommandTest.php
@@ -13,11 +13,11 @@ class EditOwnersCommandTest extends TestCase
use ConsoleIntegrationTestTrait;
public $fixtures = [
- 'app.links',
- 'app.reindex_flags',
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
+ 'app.Links',
+ 'app.ReindexFlags',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
];
const TESTDIR = TMP . 'edit_owners_tests' . DS;
diff --git a/tests/TestCase/Command/FillContributionsStatsTest.php b/tests/TestCase/Command/FillContributionsStatsTest.php
index 01cbd45ca6..1c241112ac 100644
--- a/tests/TestCase/Command/FillContributionsStatsTest.php
+++ b/tests/TestCase/Command/FillContributionsStatsTest.php
@@ -11,8 +11,8 @@ class FillContributionsStatsCommand extends TestCase {
use ConsoleIntegrationTestTrait;
public $fixtures = array(
- 'app.contributions',
- 'app.contributions_stats'
+ 'app.Contributions',
+ 'app.ContributionsStats'
);
function setUp() {
diff --git a/tests/TestCase/Command/FixLinksTableLangsCommandTest.php b/tests/TestCase/Command/FixLinksTableLangsCommandTest.php
index dbf3e7a280..cac82d8c6c 100644
--- a/tests/TestCase/Command/FixLinksTableLangsCommandTest.php
+++ b/tests/TestCase/Command/FixLinksTableLangsCommandTest.php
@@ -11,8 +11,8 @@ class FixLinksTableLangsCommandTest extends TestCase
use ConsoleIntegrationTestTrait;
public $fixtures = [
- 'app.sentences',
- 'app.links',
+ 'app.Sentences',
+ 'app.Links',
];
public function setUp() {
diff --git a/tests/TestCase/Controller/ActivitiesControllerTest.php b/tests/TestCase/Controller/ActivitiesControllerTest.php
index c00834aac7..8624bae225 100644
--- a/tests/TestCase/Controller/ActivitiesControllerTest.php
+++ b/tests/TestCase/Controller/ActivitiesControllerTest.php
@@ -9,18 +9,18 @@ class ActivitiesControllerTest extends IntegrationTestCase {
use TatoebaControllerTestTrait;
public $fixtures = array(
- 'app.audios',
- 'app.favorites_users',
- 'app.links',
- 'app.private_messages',
- 'app.sentences',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.users_sentences',
- 'app.wiki_articles',
+ 'app.Audios',
+ 'app.FavoritesUsers',
+ 'app.Links',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.UsersSentences',
+ 'app.WikiArticles',
);
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/AngularTemplatesControllerTest.php b/tests/TestCase/Controller/AngularTemplatesControllerTest.php
index f48096770f..face97cb0f 100644
--- a/tests/TestCase/Controller/AngularTemplatesControllerTest.php
+++ b/tests/TestCase/Controller/AngularTemplatesControllerTest.php
@@ -11,7 +11,7 @@ class AngularTemplatesControllerTest extends TestCase
public $fixtures = [
'app.Users',
- 'app.users_languages',
+ 'app.UsersLanguages',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/AppControllerTest.php b/tests/TestCase/Controller/AppControllerTest.php
index 7f7bfa164f..ba2c58823c 100644
--- a/tests/TestCase/Controller/AppControllerTest.php
+++ b/tests/TestCase/Controller/AppControllerTest.php
@@ -9,10 +9,10 @@ class AppControllerTest extends IntegrationTestCase {
use TatoebaControllerTestTrait;
public $fixtures = array(
- 'app.users',
- 'app.users_languages',
- 'app.private_messages',
- 'app.wiki_articles',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.PrivateMessages',
+ 'app.WikiArticles',
);
function setRememberMeCookie($username, $password) {
diff --git a/tests/TestCase/Controller/AudioControllerTest.php b/tests/TestCase/Controller/AudioControllerTest.php
index ee28088839..f3a1f5106e 100644
--- a/tests/TestCase/Controller/AudioControllerTest.php
+++ b/tests/TestCase/Controller/AudioControllerTest.php
@@ -15,18 +15,18 @@ class AudioControllerTest extends IntegrationTestCase
use AudioIntegrationTestTrait;
public $fixtures = [
- 'app.audios',
- 'app.disabled_audios',
- 'app.languages',
- 'app.private_messages',
- 'app.sentences',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.wiki_articles',
- 'app.reindex_flags',
- 'app.links',
- 'app.queued_jobs',
+ 'app.Audios',
+ 'app.DisabledAudios',
+ 'app.Languages',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.WikiArticles',
+ 'app.ReindexFlags',
+ 'app.Links',
+ 'app.QueuedJobs',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/Component/PermissionsComponentTest.php b/tests/TestCase/Controller/Component/PermissionsComponentTest.php
index 0b70b05e21..465d423ab5 100644
--- a/tests/TestCase/Controller/Component/PermissionsComponentTest.php
+++ b/tests/TestCase/Controller/Component/PermissionsComponentTest.php
@@ -13,10 +13,10 @@
class PermissionsComponentTest extends TestCase
{
public $fixtures = [
- 'app.users',
- 'app.users_languages',
- 'app.walls',
- 'app.sentence_comments',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.Walls',
+ 'app.SentenceComments',
];
private $component;
private $controller;
diff --git a/tests/TestCase/Controller/ContributionsControllerTest.php b/tests/TestCase/Controller/ContributionsControllerTest.php
index 445c044717..464284e925 100644
--- a/tests/TestCase/Controller/ContributionsControllerTest.php
+++ b/tests/TestCase/Controller/ContributionsControllerTest.php
@@ -10,14 +10,14 @@ class ContributionsControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.contributions',
- 'app.contributions_stats',
- 'app.last_contributions',
- 'app.users',
- 'app.users_languages',
- 'app.private_messages',
- 'app.sentences',
- 'app.wiki_articles',
+ 'app.Contributions',
+ 'app.ContributionsStats',
+ 'app.LastContributions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/FavoritesControllerTest.php b/tests/TestCase/Controller/FavoritesControllerTest.php
index a055642671..e377b15b6a 100644
--- a/tests/TestCase/Controller/FavoritesControllerTest.php
+++ b/tests/TestCase/Controller/FavoritesControllerTest.php
@@ -9,13 +9,13 @@ class FavoritesControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.favorites_users',
- 'app.users',
- 'app.users_languages',
- 'app.private_messages',
- 'app.sentences',
- 'app.transcriptions',
- 'app.wiki_articles',
+ 'app.FavoritesUsers',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.Transcriptions',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/ImportsControllerTest.php b/tests/TestCase/Controller/ImportsControllerTest.php
index 4b9e296845..7d11b7412d 100644
--- a/tests/TestCase/Controller/ImportsControllerTest.php
+++ b/tests/TestCase/Controller/ImportsControllerTest.php
@@ -9,8 +9,8 @@ class ImportsControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.users',
- 'app.users_languages',
+ 'app.Users',
+ 'app.UsersLanguages',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/LicensingControllerTest.php b/tests/TestCase/Controller/LicensingControllerTest.php
index 0744e1fda1..37d238a737 100644
--- a/tests/TestCase/Controller/LicensingControllerTest.php
+++ b/tests/TestCase/Controller/LicensingControllerTest.php
@@ -8,14 +8,14 @@ class LicensingControllerTest extends IntegrationTestCase {
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.users',
- 'app.users_languages',
- 'app.queued_jobs',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.sentences',
- 'app.private_messages',
- 'app.wiki_articles',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.QueuedJobs',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Sentences',
+ 'app.PrivateMessages',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/LinksControllerTest.php b/tests/TestCase/Controller/LinksControllerTest.php
index 42ac4c9c99..48982e5233 100644
--- a/tests/TestCase/Controller/LinksControllerTest.php
+++ b/tests/TestCase/Controller/LinksControllerTest.php
@@ -9,12 +9,12 @@ class LinksControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.contributions',
- 'app.links',
- 'app.reindex_flags',
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
+ 'app.Contributions',
+ 'app.Links',
+ 'app.ReindexFlags',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/PrivateMessagesControllerTest.php b/tests/TestCase/Controller/PrivateMessagesControllerTest.php
index 463cacd587..7230c7c378 100644
--- a/tests/TestCase/Controller/PrivateMessagesControllerTest.php
+++ b/tests/TestCase/Controller/PrivateMessagesControllerTest.php
@@ -9,10 +9,10 @@ class PrivateMessagesControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.private_messages',
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/ReviewsControllerTest.php b/tests/TestCase/Controller/ReviewsControllerTest.php
index 3c25f2f3d8..8e1b744e53 100644
--- a/tests/TestCase/Controller/ReviewsControllerTest.php
+++ b/tests/TestCase/Controller/ReviewsControllerTest.php
@@ -9,11 +9,11 @@ class ReviewsControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.private_messages',
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
- 'app.users_sentences',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.UsersSentences',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/SControllerTest.php b/tests/TestCase/Controller/SControllerTest.php
index 19f59617ef..29e43c53a2 100644
--- a/tests/TestCase/Controller/SControllerTest.php
+++ b/tests/TestCase/Controller/SControllerTest.php
@@ -9,17 +9,17 @@ class SControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.audios',
- 'app.favorites_users',
- 'app.links',
- 'app.sentences',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.users_sentences',
- 'app.wiki_articles',
+ 'app.Audios',
+ 'app.FavoritesUsers',
+ 'app.Links',
+ 'app.Sentences',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.UsersSentences',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/SentenceAnnotationsControllerTest.php b/tests/TestCase/Controller/SentenceAnnotationsControllerTest.php
index d1680722a2..8c014262cb 100644
--- a/tests/TestCase/Controller/SentenceAnnotationsControllerTest.php
+++ b/tests/TestCase/Controller/SentenceAnnotationsControllerTest.php
@@ -9,12 +9,12 @@ class SentenceAnnotationsControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.private_messages',
- 'app.sentence_annotations',
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
- 'app.wiki_articles',
+ 'app.PrivateMessages',
+ 'app.SentenceAnnotations',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/SentenceCommentsControllerTest.php b/tests/TestCase/Controller/SentenceCommentsControllerTest.php
index 0c03391ba2..69f4cdcfc7 100644
--- a/tests/TestCase/Controller/SentenceCommentsControllerTest.php
+++ b/tests/TestCase/Controller/SentenceCommentsControllerTest.php
@@ -9,13 +9,13 @@ class SentenceCommentsControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.private_messages',
- 'app.sentence_comments',
- 'app.sentences',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.wiki_articles',
+ 'app.PrivateMessages',
+ 'app.SentenceComments',
+ 'app.Sentences',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/SentencesControllerTest.php b/tests/TestCase/Controller/SentencesControllerTest.php
index da2a1c6624..48d631fbbf 100644
--- a/tests/TestCase/Controller/SentencesControllerTest.php
+++ b/tests/TestCase/Controller/SentencesControllerTest.php
@@ -11,24 +11,24 @@ class SentencesControllerTest extends IntegrationTestCase {
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
- 'app.sentences_sentences_lists',
- 'app.languages',
- 'app.links',
- 'app.private_messages',
- 'app.reindex_flags',
- 'app.audios',
- 'app.transcriptions',
- 'app.contributions',
- 'app.tags',
- 'app.tags_sentences',
- 'app.users_sentences',
- 'app.sentence_comments',
- 'app.favorites_users',
- 'app.sentences_lists',
- 'app.wiki_articles',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.SentencesSentencesLists',
+ 'app.Languages',
+ 'app.Links',
+ 'app.PrivateMessages',
+ 'app.ReindexFlags',
+ 'app.Audios',
+ 'app.Transcriptions',
+ 'app.Contributions',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.UsersSentences',
+ 'app.SentenceComments',
+ 'app.FavoritesUsers',
+ 'app.SentencesLists',
+ 'app.WikiArticles',
];
public function setUp() {
diff --git a/tests/TestCase/Controller/SentencesListsControllerTest.php b/tests/TestCase/Controller/SentencesListsControllerTest.php
index 284c16581d..893d14feee 100644
--- a/tests/TestCase/Controller/SentencesListsControllerTest.php
+++ b/tests/TestCase/Controller/SentencesListsControllerTest.php
@@ -10,21 +10,21 @@ class SentencesListsControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.audios',
- 'app.contributions',
- 'app.favorites_users',
- 'app.languages',
- 'app.links',
- 'app.private_messages',
- 'app.reindex_flags',
- 'app.sentences',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.users_sentences',
- 'app.wiki_articles',
+ 'app.Audios',
+ 'app.Contributions',
+ 'app.FavoritesUsers',
+ 'app.Languages',
+ 'app.Links',
+ 'app.PrivateMessages',
+ 'app.ReindexFlags',
+ 'app.Sentences',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.UsersSentences',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/StatsControllerTest.php b/tests/TestCase/Controller/StatsControllerTest.php
index 74f1a5b02c..819595c8ae 100644
--- a/tests/TestCase/Controller/StatsControllerTest.php
+++ b/tests/TestCase/Controller/StatsControllerTest.php
@@ -9,11 +9,11 @@ class StatsControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.private_messages',
- 'app.users',
- 'app.languages',
- 'app.users_languages',
- 'app.wiki_articles',
+ 'app.PrivateMessages',
+ 'app.Users',
+ 'app.Languages',
+ 'app.UsersLanguages',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/TagsControllerTest.php b/tests/TestCase/Controller/TagsControllerTest.php
index e4f16aaaff..5f3318939e 100644
--- a/tests/TestCase/Controller/TagsControllerTest.php
+++ b/tests/TestCase/Controller/TagsControllerTest.php
@@ -8,20 +8,20 @@ class TagsControllerTest extends IntegrationTestCase {
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.audios',
- 'app.favorites_users',
- 'app.private_messages',
- 'app.sentences',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.links',
- 'app.tags',
- 'app.tags_sentences',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.users_sentences',
- 'app.wiki_articles',
+ 'app.Audios',
+ 'app.FavoritesUsers',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Links',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.UsersSentences',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/TranscriptionsControllerTest.php b/tests/TestCase/Controller/TranscriptionsControllerTest.php
index db89410d22..6b4aadad38 100644
--- a/tests/TestCase/Controller/TranscriptionsControllerTest.php
+++ b/tests/TestCase/Controller/TranscriptionsControllerTest.php
@@ -9,12 +9,12 @@ class TranscriptionsControllerTest extends IntegrationTestCase {
use TatoebaControllerTestTrait;
public $fixtures = array(
- 'app.private_messages',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.sentences',
- 'app.wiki_articles',
+ 'app.PrivateMessages',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.Sentences',
+ 'app.WikiArticles',
);
public function setUp() {
diff --git a/tests/TestCase/Controller/UserControllerTest.php b/tests/TestCase/Controller/UserControllerTest.php
index 7847a3c8aa..5dcd62e5d6 100644
--- a/tests/TestCase/Controller/UserControllerTest.php
+++ b/tests/TestCase/Controller/UserControllerTest.php
@@ -13,15 +13,15 @@ class UserControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.audios',
- 'app.contributions',
- 'app.favorites_users',
- 'app.users',
- 'app.private_messages',
- 'app.sentence_comments',
- 'app.sentences',
- 'app.users_languages',
- 'app.wiki_articles',
+ 'app.Audios',
+ 'app.Contributions',
+ 'app.FavoritesUsers',
+ 'app.Users',
+ 'app.PrivateMessages',
+ 'app.SentenceComments',
+ 'app.Sentences',
+ 'app.UsersLanguages',
+ 'app.WikiArticles',
];
private $oldPasswords = [];
diff --git a/tests/TestCase/Controller/UsersControllerTest.php b/tests/TestCase/Controller/UsersControllerTest.php
index f5b1b7819f..9c2cc72619 100644
--- a/tests/TestCase/Controller/UsersControllerTest.php
+++ b/tests/TestCase/Controller/UsersControllerTest.php
@@ -13,15 +13,15 @@ class UsersControllerTest extends IntegrationTestCase {
TatoebaControllerTestTrait;
public $fixtures = [
- 'app.contributions',
- 'app.users',
- 'app.users_languages',
- 'app.last_contributions',
- 'app.private_messages',
- 'app.sentence_comments',
- 'app.sentences',
- 'app.walls',
- 'app.wiki_articles',
+ 'app.Contributions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.LastContributions',
+ 'app.PrivateMessages',
+ 'app.SentenceComments',
+ 'app.Sentences',
+ 'app.Walls',
+ 'app.WikiArticles',
];
public function setUp() {
diff --git a/tests/TestCase/Controller/UsersLanguagesControllerTest.php b/tests/TestCase/Controller/UsersLanguagesControllerTest.php
index d5b782220d..06327433a4 100644
--- a/tests/TestCase/Controller/UsersLanguagesControllerTest.php
+++ b/tests/TestCase/Controller/UsersLanguagesControllerTest.php
@@ -10,8 +10,8 @@ class UsersLanguagesControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.users',
- 'app.users_languages',
+ 'app.Users',
+ 'app.UsersLanguages',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/VocabularyControllerTest.php b/tests/TestCase/Controller/VocabularyControllerTest.php
index 676bdf034b..1600dabb45 100644
--- a/tests/TestCase/Controller/VocabularyControllerTest.php
+++ b/tests/TestCase/Controller/VocabularyControllerTest.php
@@ -9,13 +9,13 @@ class VocabularyControllerTest extends IntegrationTestCase
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.private_messages',
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
- 'app.users_vocabulary',
- 'app.vocabulary',
- 'app.wiki_articles',
+ 'app.PrivateMessages',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.UsersVocabulary',
+ 'app.Vocabulary',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Controller/WallControllerTest.php b/tests/TestCase/Controller/WallControllerTest.php
index 45523404dc..a481f1d7d9 100644
--- a/tests/TestCase/Controller/WallControllerTest.php
+++ b/tests/TestCase/Controller/WallControllerTest.php
@@ -8,12 +8,12 @@ class WallControllerTest extends IntegrationTestCase {
use TatoebaControllerTestTrait;
public $fixtures = [
- 'app.private_messages',
- 'app.walls',
- 'app.wall_threads',
- 'app.users',
- 'app.users_languages',
- 'app.wiki_articles',
+ 'app.PrivateMessages',
+ 'app.Walls',
+ 'app.WallThreads',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.WikiArticles',
];
public function accessesProvider() {
diff --git a/tests/TestCase/Event/NotificationListenerTest.php b/tests/TestCase/Event/NotificationListenerTest.php
index 38d1eb3baf..b265efa60c 100644
--- a/tests/TestCase/Event/NotificationListenerTest.php
+++ b/tests/TestCase/Event/NotificationListenerTest.php
@@ -14,10 +14,10 @@ class NotificationListenerTest extends TestCase {
use EmailTrait;
public $fixtures = array(
- 'app.users',
- 'app.sentences',
- 'app.sentence_comments',
- 'app.walls'
+ 'app.Users',
+ 'app.Sentences',
+ 'app.SentenceComments',
+ 'app.Walls'
);
public function setUp() {
diff --git a/tests/TestCase/Form/SentencesSearchFormTest.php b/tests/TestCase/Form/SentencesSearchFormTest.php
index 28587c26ef..afcef4dfbb 100644
--- a/tests/TestCase/Form/SentencesSearchFormTest.php
+++ b/tests/TestCase/Form/SentencesSearchFormTest.php
@@ -6,10 +6,10 @@
class SentencesSearchFormTest extends TestCase
{
public $fixtures = [
- 'app.users',
- 'app.sentences_lists',
- 'app.tags',
- 'app.users_languages',
+ 'app.Users',
+ 'app.SentencesLists',
+ 'app.Tags',
+ 'app.UsersLanguages',
];
public function setUp() {
diff --git a/tests/TestCase/Mailer/UserMailerTest.php b/tests/TestCase/Mailer/UserMailerTest.php
index fb734b34a2..9769a244bd 100644
--- a/tests/TestCase/Mailer/UserMailerTest.php
+++ b/tests/TestCase/Mailer/UserMailerTest.php
@@ -11,7 +11,7 @@ class UserMailerTest extends TestCase {
use EmailTrait;
- public $fixtures = ['app.users'];
+ public $fixtures = ['app.Users'];
protected $email = null;
protected $mailer = null;
diff --git a/tests/TestCase/Model/Entity/TranscriptionTest.php b/tests/TestCase/Model/Entity/TranscriptionTest.php
index a175b7e8b3..8c8782f62b 100644
--- a/tests/TestCase/Model/Entity/TranscriptionTest.php
+++ b/tests/TestCase/Model/Entity/TranscriptionTest.php
@@ -1,5 +1,5 @@
-Licensing = new Licensing();
}
diff --git a/tests/TestCase/Model/SearchTest.php b/tests/TestCase/Model/SearchTest.php
index e9dcbd89b8..4f09b7c621 100644
--- a/tests/TestCase/Model/SearchTest.php
+++ b/tests/TestCase/Model/SearchTest.php
@@ -8,9 +8,9 @@
class SearchTest extends TestCase
{
public $fixtures = [
- 'app.sentences_lists',
- 'app.users_languages',
- 'app.tags',
+ 'app.SentencesLists',
+ 'app.UsersLanguages',
+ 'app.Tags',
];
public function setUp()
diff --git a/tests/TestCase/Model/Table/AudiosTableTest.php b/tests/TestCase/Model/Table/AudiosTableTest.php
index 1d71003909..9598aa20a0 100644
--- a/tests/TestCase/Model/Table/AudiosTableTest.php
+++ b/tests/TestCase/Model/Table/AudiosTableTest.php
@@ -10,24 +10,24 @@
class AudiosTableTest extends TestCase {
public $fixtures = array(
- 'app.audios',
- 'app.disabled_audios',
- 'app.contributions',
- 'app.favorites_users',
- 'app.languages',
- 'app.links',
- 'app.reindex_flags',
- 'app.sentences',
- 'app.sentence_annotations',
- 'app.sentence_comments',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.tags',
- 'app.tags_sentences',
- 'app.transcriptions',
- 'app.users',
- 'app.walls',
- 'app.wall_threads'
+ 'app.Audios',
+ 'app.DisabledAudios',
+ 'app.Contributions',
+ 'app.FavoritesUsers',
+ 'app.Languages',
+ 'app.Links',
+ 'app.ReindexFlags',
+ 'app.Sentences',
+ 'app.SentenceAnnotations',
+ 'app.SentenceComments',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.Walls',
+ 'app.WallThreads'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/ContributionsStatsTableTest.php b/tests/TestCase/Model/Table/ContributionsStatsTableTest.php
index 51070af11d..2e69045f95 100644
--- a/tests/TestCase/Model/Table/ContributionsStatsTableTest.php
+++ b/tests/TestCase/Model/Table/ContributionsStatsTableTest.php
@@ -12,7 +12,7 @@
class ContributionsStatsTableTest extends TestCase {
public $fixtures = array(
- 'app.contributions_stats',
+ 'app.ContributionsStats',
);
public function setUp() {
diff --git a/tests/TestCase/Model/Table/ContributionsTableTest.php b/tests/TestCase/Model/Table/ContributionsTableTest.php
index 0b8f36784a..63d154a65b 100644
--- a/tests/TestCase/Model/Table/ContributionsTableTest.php
+++ b/tests/TestCase/Model/Table/ContributionsTableTest.php
@@ -12,11 +12,11 @@
class ContributionTest extends TestCase {
public $fixtures = array(
- 'app.contributions',
- 'app.sentences',
- 'app.languages',
- 'app.links',
- 'app.users_languages',
+ 'app.Contributions',
+ 'app.Sentences',
+ 'app.Languages',
+ 'app.Links',
+ 'app.UsersLanguages',
);
public function setUp() {
diff --git a/tests/TestCase/Model/Table/ExportsTableTest.php b/tests/TestCase/Model/Table/ExportsTableTest.php
index f2c89e2949..40c53afd27 100644
--- a/tests/TestCase/Model/Table/ExportsTableTest.php
+++ b/tests/TestCase/Model/Table/ExportsTableTest.php
@@ -35,7 +35,7 @@ public function setUp()
'maxSizeInBytes' => 0,
]);
- \Cake\Core\Plugin::load('Queue');
+ parent::loadPlugins(['Queue']);
$folder = new Folder($this->testExportDir);
$folder->delete();
diff --git a/tests/TestCase/Model/Table/FavoritesTableTest.php b/tests/TestCase/Model/Table/FavoritesTableTest.php
index 05f4ddb7f2..b82decf9ac 100644
--- a/tests/TestCase/Model/Table/FavoritesTableTest.php
+++ b/tests/TestCase/Model/Table/FavoritesTableTest.php
@@ -7,7 +7,7 @@
class FavoritesTableTest extends TestCase {
public $fixtures = array(
- 'app.favorites_users',
+ 'app.FavoritesUsers',
);
function setUp() {
@@ -39,4 +39,4 @@ function testRemoveFavorite() {
$after = $this->Favorites->find()->where(['user_id' => 7])->count();
$this->assertEquals(-1, $after - $before);
}
-}
\ No newline at end of file
+}
diff --git a/tests/TestCase/Model/Table/LanguagesTableTest.php b/tests/TestCase/Model/Table/LanguagesTableTest.php
index 7fb4fee79d..4c08888e22 100644
--- a/tests/TestCase/Model/Table/LanguagesTableTest.php
+++ b/tests/TestCase/Model/Table/LanguagesTableTest.php
@@ -8,7 +8,7 @@
class LanguagesTableTest extends TestCase {
public $fixtures = array(
- 'app.languages',
+ 'app.Languages',
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/LastContributionsTableTest.php b/tests/TestCase/Model/Table/LastContributionsTableTest.php
index e406e45a70..be63208f0c 100644
--- a/tests/TestCase/Model/Table/LastContributionsTableTest.php
+++ b/tests/TestCase/Model/Table/LastContributionsTableTest.php
@@ -8,8 +8,8 @@
class LastContributionsTableTest extends TestCase {
public $fixtures = array(
- 'app.last_contributions',
- 'app.users',
+ 'app.LastContributions',
+ 'app.Users',
);
function setUp() {
@@ -30,4 +30,4 @@ function testGetCurrentContributors() {
$this->assertEquals($result, $expected);
}
-}
\ No newline at end of file
+}
diff --git a/tests/TestCase/Model/Table/LinksTableTest.php b/tests/TestCase/Model/Table/LinksTableTest.php
index ff6facf1ef..fd6de3cd02 100644
--- a/tests/TestCase/Model/Table/LinksTableTest.php
+++ b/tests/TestCase/Model/Table/LinksTableTest.php
@@ -8,22 +8,22 @@
class LinksTableTest extends TestCase {
public $fixtures = array(
- 'app.sentences',
- 'app.users',
- 'app.sentence_comments',
- 'app.contributions',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.walls',
- 'app.wall_threads',
- 'app.favorites_users',
- 'app.tags',
- 'app.tags_sentences',
- 'app.languages',
- 'app.links',
- 'app.sentence_annotations',
- 'app.transcriptions',
- 'app.reindex_flags'
+ 'app.Sentences',
+ 'app.Users',
+ 'app.SentenceComments',
+ 'app.Contributions',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Walls',
+ 'app.WallThreads',
+ 'app.FavoritesUsers',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.Languages',
+ 'app.Links',
+ 'app.SentenceAnnotations',
+ 'app.Transcriptions',
+ 'app.ReindexFlags'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/PrivateMessagesTableTest.php b/tests/TestCase/Model/Table/PrivateMessagesTableTest.php
index b092e19c5f..b8ee72701a 100644
--- a/tests/TestCase/Model/Table/PrivateMessagesTableTest.php
+++ b/tests/TestCase/Model/Table/PrivateMessagesTableTest.php
@@ -11,9 +11,9 @@
class PrivateMessageTest extends TestCase {
public $fixtures = array(
- 'app.private_messages',
- 'app.users',
- 'app.users_languages'
+ 'app.PrivateMessages',
+ 'app.Users',
+ 'app.UsersLanguages'
);
public function setUp() {
diff --git a/tests/TestCase/Model/Table/SentenceAnnotationsTableTest.php b/tests/TestCase/Model/Table/SentenceAnnotationsTableTest.php
index 5a3ad63011..e4f2ce15bc 100644
--- a/tests/TestCase/Model/Table/SentenceAnnotationsTableTest.php
+++ b/tests/TestCase/Model/Table/SentenceAnnotationsTableTest.php
@@ -10,9 +10,9 @@
class SentenceAnnotationsTableTest extends TestCase {
public $fixtures = array(
- 'app.sentence_annotations',
- 'app.users',
- 'app.sentences',
+ 'app.SentenceAnnotations',
+ 'app.Users',
+ 'app.Sentences',
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/SentenceCommentsTableTest.php b/tests/TestCase/Model/Table/SentenceCommentsTableTest.php
index 39b01e5ceb..3268f24ca8 100644
--- a/tests/TestCase/Model/Table/SentenceCommentsTableTest.php
+++ b/tests/TestCase/Model/Table/SentenceCommentsTableTest.php
@@ -11,10 +11,10 @@
class SentenceCommentTest extends TestCase {
public $fixtures = array(
- 'app.sentence_comments',
- 'app.users_languages',
- 'app.users',
- 'app.sentences',
+ 'app.SentenceComments',
+ 'app.UsersLanguages',
+ 'app.Users',
+ 'app.Sentences',
);
public function setUp() {
diff --git a/tests/TestCase/Model/Table/SentencesListsTableTest.php b/tests/TestCase/Model/Table/SentencesListsTableTest.php
index 2986969deb..88205303f6 100644
--- a/tests/TestCase/Model/Table/SentencesListsTableTest.php
+++ b/tests/TestCase/Model/Table/SentencesListsTableTest.php
@@ -10,18 +10,18 @@
class SentencesListsTableTest extends TestCase {
public $fixtures = array(
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.sentences',
- 'app.favorites_users',
- 'app.users',
- 'app.users_languages',
- 'app.contributions',
- 'app.languages',
- 'app.reindex_flags',
- 'app.links',
- 'app.audios',
- 'app.transcriptions'
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Sentences',
+ 'app.FavoritesUsers',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.Contributions',
+ 'app.Languages',
+ 'app.ReindexFlags',
+ 'app.Links',
+ 'app.Audios',
+ 'app.Transcriptions'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/SentencesSentencesListsTableTest.php b/tests/TestCase/Model/Table/SentencesSentencesListsTableTest.php
index 97ece76e8d..b329caa54e 100644
--- a/tests/TestCase/Model/Table/SentencesSentencesListsTableTest.php
+++ b/tests/TestCase/Model/Table/SentencesSentencesListsTableTest.php
@@ -7,9 +7,9 @@
class SentencesSentencesListsTableTest extends TestCase {
public $fixtures = array(
- 'app.sentences_sentences_lists',
- 'app.sentences_lists',
- 'app.sentences'
+ 'app.SentencesSentencesLists',
+ 'app.SentencesLists',
+ 'app.Sentences'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/SentencesTableTest.php b/tests/TestCase/Model/Table/SentencesTableTest.php
index 595bf2a2cf..8012f1bf65 100644
--- a/tests/TestCase/Model/Table/SentencesTableTest.php
+++ b/tests/TestCase/Model/Table/SentencesTableTest.php
@@ -17,22 +17,22 @@
class SentencesTableTest extends TestCase {
public $fixtures = array(
- 'app.sentences',
- 'app.users',
- 'app.users_languages',
- 'app.contributions',
- 'app.disabled_audios',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.tags',
- 'app.tags_sentences',
- 'app.languages',
- 'app.links',
- 'app.transcriptions',
- 'app.reindex_flags',
- 'app.audios',
- 'app.users_sentences',
- 'app.favorites_users',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.Contributions',
+ 'app.DisabledAudios',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.Languages',
+ 'app.Links',
+ 'app.Transcriptions',
+ 'app.ReindexFlags',
+ 'app.Audios',
+ 'app.UsersSentences',
+ 'app.FavoritesUsers',
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/TagsSentencesTableTest.php b/tests/TestCase/Model/Table/TagsSentencesTableTest.php
index bae60b6821..ce22048a5f 100644
--- a/tests/TestCase/Model/Table/TagsSentencesTableTest.php
+++ b/tests/TestCase/Model/Table/TagsSentencesTableTest.php
@@ -8,8 +8,8 @@
class TagsSentencesTableTest extends TestCase {
public $fixtures = array(
- 'app.sentences',
- 'app.tags_sentences'
+ 'app.Sentences',
+ 'app.TagsSentences'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/TagsTableTest.php b/tests/TestCase/Model/Table/TagsTableTest.php
index 4f6efd73f1..5548e1320b 100644
--- a/tests/TestCase/Model/Table/TagsTableTest.php
+++ b/tests/TestCase/Model/Table/TagsTableTest.php
@@ -12,11 +12,11 @@ class TagsTableTest extends TestCase {
use TatoebaTableTestTrait;
public $fixtures = array(
- 'app.sentences',
- 'app.users',
- 'app.tags',
- 'app.tags_sentences',
- 'app.users_languages',
+ 'app.Sentences',
+ 'app.Users',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.UsersLanguages',
);
public function setUp() {
diff --git a/tests/TestCase/Model/Table/TranscriptionsTableTest.php b/tests/TestCase/Model/Table/TranscriptionsTableTest.php
index 381a7f5fe3..fabff54042 100644
--- a/tests/TestCase/Model/Table/TranscriptionsTableTest.php
+++ b/tests/TestCase/Model/Table/TranscriptionsTableTest.php
@@ -10,9 +10,9 @@
class TranscriptionsTableTest extends TestCase {
public $fixtures = array(
- 'app.transcriptions',
- 'app.sentences',
- 'app.users'
+ 'app.Transcriptions',
+ 'app.Sentences',
+ 'app.Users'
);
public function setUp() {
diff --git a/tests/TestCase/Model/Table/TranslationsTableTest.php b/tests/TestCase/Model/Table/TranslationsTableTest.php
index f66a777f93..973079c4fb 100644
--- a/tests/TestCase/Model/Table/TranslationsTableTest.php
+++ b/tests/TestCase/Model/Table/TranslationsTableTest.php
@@ -8,10 +8,10 @@
class TranslationsTableTest extends TestCase {
public $fixtures = array(
- 'app.sentences',
- 'app.links',
- 'app.transcriptions',
- 'app.users'
+ 'app.Sentences',
+ 'app.Links',
+ 'app.Transcriptions',
+ 'app.Users'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/UsersLanguagesTableTest.php b/tests/TestCase/Model/Table/UsersLanguagesTableTest.php
index 46a1f6511b..7d7695d53f 100644
--- a/tests/TestCase/Model/Table/UsersLanguagesTableTest.php
+++ b/tests/TestCase/Model/Table/UsersLanguagesTableTest.php
@@ -9,9 +9,9 @@
class UsersLanguagesTableTest extends TestCase {
public $fixtures = array(
- 'app.users',
- 'app.users_languages',
- 'app.languages'
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.Languages'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/UsersSentencesTableTest.php b/tests/TestCase/Model/Table/UsersSentencesTableTest.php
index 54c37663ce..20154de5d5 100644
--- a/tests/TestCase/Model/Table/UsersSentencesTableTest.php
+++ b/tests/TestCase/Model/Table/UsersSentencesTableTest.php
@@ -9,9 +9,9 @@
class UsersSentencesTest extends TestCase {
public $fixtures = array(
- 'app.users',
- 'app.users_sentences',
- 'app.sentences'
+ 'app.Users',
+ 'app.UsersSentences',
+ 'app.Sentences'
);
function setUp() {
diff --git a/tests/TestCase/Model/Table/UsersTableTest.php b/tests/TestCase/Model/Table/UsersTableTest.php
index a42251c2f5..a1ad12b7c4 100644
--- a/tests/TestCase/Model/Table/UsersTableTest.php
+++ b/tests/TestCase/Model/Table/UsersTableTest.php
@@ -10,11 +10,11 @@ class UsersTableTest extends TestCase
public $Users;
public $fixtures = [
- 'app.users',
- 'app.sentences',
- 'app.contributions',
- 'app.sentence_comments',
- 'app.walls',
+ 'app.Users',
+ 'app.Sentences',
+ 'app.Contributions',
+ 'app.SentenceComments',
+ 'app.Walls',
];
public function setUp()
diff --git a/tests/TestCase/Model/Table/UsersVocabularyTableTest.php b/tests/TestCase/Model/Table/UsersVocabularyTableTest.php
index 081042ac4a..126483008a 100644
--- a/tests/TestCase/Model/Table/UsersVocabularyTableTest.php
+++ b/tests/TestCase/Model/Table/UsersVocabularyTableTest.php
@@ -9,9 +9,9 @@
class UsersVocabularyTableTest extends TestCase
{
public $fixtures = [
- 'app.users_vocabulary',
- 'app.vocabulary',
- 'app.users'
+ 'app.UsersVocabulary',
+ 'app.Vocabulary',
+ 'app.Users'
];
public function setUp()
diff --git a/tests/TestCase/Model/Table/VocabularyTableTest.php b/tests/TestCase/Model/Table/VocabularyTableTest.php
index 1d6d5b5755..32e977f56b 100644
--- a/tests/TestCase/Model/Table/VocabularyTableTest.php
+++ b/tests/TestCase/Model/Table/VocabularyTableTest.php
@@ -10,10 +10,10 @@
class VocabularyTableTest extends TestCase
{
public $fixtures = [
- 'app.vocabulary',
- 'app.users_vocabulary',
- 'app.sentences',
- 'app.users_languages'
+ 'app.Vocabulary',
+ 'app.UsersVocabulary',
+ 'app.Sentences',
+ 'app.UsersLanguages'
];
public function setUp()
diff --git a/tests/TestCase/Model/Table/WallTableTest.php b/tests/TestCase/Model/Table/WallTableTest.php
index 0c6a9daa90..5aaf489b5d 100644
--- a/tests/TestCase/Model/Table/WallTableTest.php
+++ b/tests/TestCase/Model/Table/WallTableTest.php
@@ -13,10 +13,10 @@
class WallTest extends TestCase {
public $fixtures = array(
- 'app.walls',
- 'app.wall_threads',
- 'app.users',
- 'app.users_languages',
+ 'app.Walls',
+ 'app.WallThreads',
+ 'app.Users',
+ 'app.UsersLanguages',
);
public function setUp() {
diff --git a/tests/TestCase/Shell/SentenceDerivationShellTest.php b/tests/TestCase/Shell/SentenceDerivationShellTest.php
index 50ace357c1..ed06361018 100644
--- a/tests/TestCase/Shell/SentenceDerivationShellTest.php
+++ b/tests/TestCase/Shell/SentenceDerivationShellTest.php
@@ -12,12 +12,12 @@
class SentenceDerivationShellTest extends TestCase
{
public $fixtures = array(
- 'app.contributions',
- 'app.sentences',
- 'app.languages',
- 'app.reindex_flags',
- 'app.links',
- 'app.users'
+ 'app.Contributions',
+ 'app.Sentences',
+ 'app.Languages',
+ 'app.ReindexFlags',
+ 'app.Links',
+ 'app.Users'
);
public function setUp()
diff --git a/tests/TestCase/Shell/Task/QueueRefreshLicenseSwitchListTaskTest.php b/tests/TestCase/Shell/Task/QueueRefreshLicenseSwitchListTaskTest.php
index 2382d0e679..c411cb5c2b 100644
--- a/tests/TestCase/Shell/Task/QueueRefreshLicenseSwitchListTaskTest.php
+++ b/tests/TestCase/Shell/Task/QueueRefreshLicenseSwitchListTaskTest.php
@@ -6,22 +6,21 @@
use Cake\Console\ConsoleOutput;
use Cake\TestSuite\TestCase;
use Cake\ORM\TableRegistry;
-use Cake\Core\Plugin;
use Cake\Utility\Hash;
class QueueRefreshLicenseSwitchListTaskTest extends TestCase
{
public $fixtures = array(
- 'app.sentences',
- 'app.contributions',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
+ 'app.Sentences',
+ 'app.Contributions',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
);
public function setUp()
{
parent::setUp();
- Plugin::load('Queue');
+ parent::loadPlugins(['Queue']);
$io = $this->getMockBuilder(ConsoleIo::class)->getMock();
$this->task = $this->getMockBuilder(QueueRefreshLicenseSwitchListTask::class)
diff --git a/tests/TestCase/Shell/Task/QueueSwitchSentencesLicenseTaskTest.php b/tests/TestCase/Shell/Task/QueueSwitchSentencesLicenseTaskTest.php
index 3685d0cd86..1ec7f02cda 100644
--- a/tests/TestCase/Shell/Task/QueueSwitchSentencesLicenseTaskTest.php
+++ b/tests/TestCase/Shell/Task/QueueSwitchSentencesLicenseTaskTest.php
@@ -6,26 +6,25 @@
use Cake\Console\ConsoleOutput;
use Cake\TestSuite\TestCase;
use Cake\ORM\TableRegistry;
-use Cake\Core\Plugin;
use Cake\Utility\Hash;
use App\Model\CurrentUser;
class QueueSwitchSentencesLicenseTaskTest extends TestCase
{
public $fixtures = array(
- 'app.sentences',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.users_languages',
- 'app.contributions',
- 'app.reindex_flags',
- 'app.private_messages',
+ 'app.Sentences',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.UsersLanguages',
+ 'app.Contributions',
+ 'app.ReindexFlags',
+ 'app.PrivateMessages',
);
public function setUp()
{
parent::setUp();
- Plugin::load('Queue');
+ parent::loadPlugins(['Queue']);
$io = $this->getMockBuilder(ConsoleIo::class)->getMock();
$this->task = $this->getMockBuilder(QueueSwitchSentencesLicenseTask::class)
diff --git a/tests/TestCase/Shell/TranscriptionsShellTest.php b/tests/TestCase/Shell/TranscriptionsShellTest.php
index b14d541f4b..f3fd5c6a6f 100644
--- a/tests/TestCase/Shell/TranscriptionsShellTest.php
+++ b/tests/TestCase/Shell/TranscriptionsShellTest.php
@@ -10,11 +10,11 @@
class TranscriptionsShellTest extends ConsoleIntegrationTestCase
{
public $fixtures = [
- 'app.sentences',
- 'app.transcriptions',
- 'app.users',
- 'app.contributions',
- 'app.reindex_flags',
+ 'app.Sentences',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.Contributions',
+ 'app.ReindexFlags',
];
public $io;
diff --git a/tests/TestCase/View/Helper/LanguagesHelperTest.php b/tests/TestCase/View/Helper/LanguagesHelperTest.php
index 8fabc33feb..d66244b450 100644
--- a/tests/TestCase/View/Helper/LanguagesHelperTest.php
+++ b/tests/TestCase/View/Helper/LanguagesHelperTest.php
@@ -9,7 +9,7 @@
class LanguagesHelperTest extends TestCase {
public $fixtures = array(
- 'app.users_languages'
+ 'app.UsersLanguages'
);
private $prevLocale;
diff --git a/tests/TestCase/View/Helper/LogsHelperTest.php b/tests/TestCase/View/Helper/LogsHelperTest.php
index f3ce64349f..9fa395b89f 100644
--- a/tests/TestCase/View/Helper/LogsHelperTest.php
+++ b/tests/TestCase/View/Helper/LogsHelperTest.php
@@ -9,7 +9,7 @@
class LogsHelperTest extends TestCase
{
public $fixtures = [
- 'app.contributions',
+ 'app.Contributions',
];
public $LogsHelper;
diff --git a/tests/TestCase/View/Helper/MessagesHelperTest.php b/tests/TestCase/View/Helper/MessagesHelperTest.php
index f965bf6630..cd8aa2d31d 100644
--- a/tests/TestCase/View/Helper/MessagesHelperTest.php
+++ b/tests/TestCase/View/Helper/MessagesHelperTest.php
@@ -10,7 +10,7 @@
class MessagesHelperTest extends TestCase {
public $fixtures = array(
- 'app.sentences'
+ 'app.Sentences'
);
public function setUp() {
diff --git a/tests/TestCase/View/Helper/TranscriptionsHelperTest.php b/tests/TestCase/View/Helper/TranscriptionsHelperTest.php
index 1d76f36a98..fbfa9248b4 100644
--- a/tests/TestCase/View/Helper/TranscriptionsHelperTest.php
+++ b/tests/TestCase/View/Helper/TranscriptionsHelperTest.php
@@ -9,23 +9,23 @@
class TranscriptionsHelperTest extends TestCase {
public $fixtures = array(
- 'app.contributions',
- 'app.favorites_users',
- 'app.languages',
- 'app.links',
- 'app.reindex_flags',
- 'app.sentences',
- 'app.sentence_comments',
- 'app.sentence_annotations',
- 'app.sentences_lists',
- 'app.sentences_sentences_lists',
- 'app.tags',
- 'app.tags_sentences',
- 'app.transcriptions',
- 'app.users',
- 'app.users_languages',
- 'app.walls',
- 'app.wall_threads'
+ 'app.Contributions',
+ 'app.FavoritesUsers',
+ 'app.Languages',
+ 'app.Links',
+ 'app.ReindexFlags',
+ 'app.Sentences',
+ 'app.SentenceComments',
+ 'app.SentenceAnnotations',
+ 'app.SentencesLists',
+ 'app.SentencesSentencesLists',
+ 'app.Tags',
+ 'app.TagsSentences',
+ 'app.Transcriptions',
+ 'app.Users',
+ 'app.UsersLanguages',
+ 'app.Walls',
+ 'app.WallThreads'
);
function setUp() {