Skip to content
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

testing #4

Open
wants to merge 210 commits into
base: 8.x-1.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
d1ed528
Issue #2272871 by Elijah Lynn, Dave Reid: Fixed "Do nothing. Leave ol…
davereid Jun 25, 2014
f98f632
Issue #2272871 by Dave Reid, Elijah Lynn: Fixed "Do nothing. Leave ol…
davereid Jun 25, 2014
e7562ad
Fixed error in hook_pathauto_pattern_alter() example code.
davereid Oct 7, 2014
ca46f1f
Issue #801702 by IceCreamYou, Dave Reid, m4olivei, mojzis: Updated AP…
davereid Feb 1, 2015
044e828
Issue #1784874 by Dave Reid, aaronbauman: Converted admin UI to use t…
davereid Mar 17, 2015
a4e5a87
Naming test method
Mar 18, 2015
23a0d34
Added back test cover annotation
Mar 18, 2015
54725e5
Add user alias type plugin
Berdir May 2, 2015
ce1d661
Update patterns form to use plugins
Berdir May 2, 2015
5d35c14
Added forum alias type
Berdir May 2, 2015
b8c9f95
Added term alias type plugin
Berdir May 2, 2015
57b4934
Move batch update methods to an additional interface
Berdir May 2, 2015
8c0de58
Remove old hook and batch update callbacks
Berdir May 2, 2015
2641029
Use the build configuration form method
Berdir May 2, 2015
bd73e27
Convert the alias type hook to a method on the alias type plugin
Berdir May 3, 2015
f96d33a
Fixing tests
Berdir May 3, 2015
f9853a5
Refactor base class to be entity type specific, make getPatterns() mo…
Berdir May 3, 2015
616eedb
Clean up hook documentation
Berdir May 3, 2015
72bd44f
Merge pull request #32 from rajibmp/tests
Berdir May 3, 2015
35e762c
Merge pull request #35 from md-systems/use-plugins
Berdir May 3, 2015
d6c3f4e
Update PathautoManager.php
chrfritsch May 10, 2015
bc83f2d
Move delete functions to storage helper
kimpepper May 10, 2015
b0ea4c5
Fix invalid settings value
kimpepper May 10, 2015
9ce6247
Merge pull request #37 from kimpepper/move-delete
Berdir May 10, 2015
590588c
Merge pull request #36 from chrfritsch/patch-1
Berdir May 15, 2015
77c2014
entity and menu_link modules no longer exist
Berdir May 15, 2015
da84044
Patterns Form loses default values
chrfritsch May 20, 2015
392b379
Update TODO.txt
itsdarrylnorris May 27, 2015
3d16d91
Merge pull request #40 from darol100/patch-1
kimpepper May 27, 2015
2f3a420
Merge pull request #39 from chrfritsch/patch-2
Berdir May 28, 2015
387fedc
Removed usage of getSystemPath()
Berdir Jun 3, 2015
33022e3
Replace removed taxonomy_get_tree()
Berdir Jun 19, 2015
9a17537
Issue #2511988 by rrfegade: Fixed documentation spelling errors.
Jun 29, 2015
0253c54
Issue #2351205 by basvanderheijden: Fixed Drupal.behaviors.pathFields…
Jun 29, 2015
579bb1b
Removed String class methods from module and replaced them with SafeM…
LKS90 Apr 23, 2015
faaac8a
added slashes to all aliases (creation and assertion)
LKS90 Jul 7, 2015
25b77a0
removed left over debug()
LKS90 Jul 10, 2015
aa8b0c0
Fixed token and node alias test
Berdir Jul 11, 2015
17ed53d
Fixing unit tests
Berdir Jul 11, 2015
fa34bdc
Fix .travis.yml version number
Berdir Jul 11, 2015
de591ea
Merge pull request #49 from md-systems/addAliasSlash
Berdir Jul 11, 2015
60a3add
Use alias storage, explicitly handle an alias that points to the give…
Berdir Jul 11, 2015
edd1551
keep the helper
Berdir Jul 11, 2015
042b12d
Add storage helper back in services.yml
Berdir Jul 11, 2015
627244c
alias manager returns the alias if there is alias stored
Berdir Jul 11, 2015
bd276eb
Merge pull request #50 from md-systems/existing-aliases
Berdir Jul 12, 2015
ae3cefc
Use a temporary feature branch for token to make the tests pass
Berdir Jul 13, 2015
45f9b5b
Add before script
LionsAd Jul 13, 2015
f625df7
Make error prone
LionsAd Jul 13, 2015
4685478
Use only simpletest now.
LionsAd Jul 13, 2015
6f88b55
Add custom runner until upstream supports it.
LionsAd Jul 13, 2015
143ecf7
Enable the new runner.
LionsAd Jul 13, 2015
d377dfa
Make executable
LionsAd Jul 13, 2015
4aef167
Add comment to trigger re-test
LionsAd Jul 14, 2015
d8e6a9c
Use a temporary feature branch for token to make the tests pass
LionsAd Jul 14, 2015
a9dae7b
Merge pull request #51 from LionsAd/drupal_ti--new
Berdir Jul 14, 2015
12f2618
Add leading slashes to paths in routing file.
alex-mccabe Jul 14, 2015
05a8f4b
Merge pull request #52 from alex-mccabe/44--paths-leading-slash
Berdir Jul 14, 2015
455fcf0
Upgrade to 1.3.0, which supports sudo: false, sync dist file.
LionsAd Jul 15, 2015
9948eb5
Merge pull request #56 from LionsAd/sudo-false
Berdir Jul 17, 2015
e3c65bd
Use upstream phpunit-core support from 1.4.0 or later
LionsAd Jul 18, 2015
b447b93
Merge pull request #58 from LionsAd/test-drupal-ti-phpunit-core
Berdir Jul 18, 2015
ea9d691
Avoid errors if an entity has no canonical link template
Berdir Jul 28, 2015
85cbf66
deleteEntityPathAll() needs to use getInternalPath()
Berdir Aug 1, 2015
63927e3
Added bubbleable metadata parameter into pathauto_tokens().
mbovan Jul 24, 2015
6d8366b
Token branch changed to feature (token-metadata) branch for testing r…
mbovan Jul 24, 2015
5bca622
Workaround to prevent endless loop for repeatedly matching route.
Berdir Aug 5, 2015
56ca6f5
Update config schema
Berdir Aug 6, 2015
02e5b3c
Fixed _pathauto_alias_exists().
davereid Aug 9, 2015
110be4c
Fixed docs in pathauto.inc.
davereid Aug 9, 2015
5ff61d8
Fix the unit tests
Berdir Aug 22, 2015
d50cb54
Return empty metadata when calling Token::replace().
Aug 25, 2015
f6a2d0a
Added comment to explain our use of empty BubbleableMetadata.
Aug 25, 2015
2190858
Merge pull request #65 from mortenson/fix-rest-responses
Berdir Aug 25, 2015
a46a4c6
Make PathautoPatternsForm::buildForm() account for missing config
tstoeckler Sep 1, 2015
da08316
Merge remote-tracking branch 'do/7.x-1.x' into 8.x-1.x
Berdir Sep 23, 2015
d4422eb
Remove useless INSTALL.txt and TODO.txt
Berdir Sep 23, 2015
519bc0d
Make EntityAliasTypeBase::__construct() call $this->setConfiguration()
tstoeckler Sep 24, 2015
ccc9733
Merge pull request #72 from tstoeckler/account-for-missing-config
Berdir Sep 26, 2015
7f2c30b
Update deprecated t() placeholders
Berdir Sep 27, 2015
3350940
Update deprecated t() placeholders
Berdir Sep 27, 2015
5bae990
Cast strings where necessary, remove bundle rename test
Berdir Oct 3, 2015
fcf8c2f
Remove sanitize option, use PlainTextOutput
Berdir Oct 3, 2015
e850af1
Remove usage of generateFromPath()
Berdir Oct 7, 2015
e5a2a2a
Issue #2067191 by bneil, Martijn Houtman, stefan.r, rv0, DamienMcKenn…
Berdir Oct 19, 2015
7b62226
Issue #2372101 by mfb: Fixed mb_eregi_replace() called without first …
Oct 2, 2015
2bb457c
Issue #2434675 by mtift: Clarify when hook_pathauto_pattern_alter() i…
Oct 2, 2015
7bdd775
Issue #2423077 by Dave Reid, TuWebO: Fixed wrong parameters passed to…
Berdir Oct 19, 2015
7657d5d
typo fix
EclipseGc Oct 19, 2015
abb7881
initial commit of config entity to hold pattern settings
EclipseGc Oct 19, 2015
13f6aa8
Alter the default path widget class instead of defining our own
Berdir Oct 20, 2015
8c2c84a
Merge pull request #83 from md-systems/widget
Berdir Oct 20, 2015
d035555
Generalize the batchUpdate() method, remove duplicate code
Berdir Oct 20, 2015
b0c814c
Merge pull request #85 from md-systems/bulk
Berdir Oct 20, 2015
f4336da
Move cleanString() and related methods to AliasCleaner
Berdir Oct 20, 2015
a29d4c6
Update call to cleanTokenValues() in tests
Berdir Oct 20, 2015
32a5379
Merge pull request #84 from md-systems/cleanstring
Berdir Oct 20, 2015
7dc734e
updating routes and menu entries as well as providing an initial star…
EclipseGc Oct 21, 2015
bdd3928
initial addition of "applies" logic to AliasTypeInterface and corresp…
EclipseGc Oct 21, 2015
1ca8fdd
massive update that fully enables the wizard process and switches the…
EclipseGc Oct 26, 2015
23a8976
using mutable version of config object in submit handler, updating th…
EclipseGc Oct 27, 2015
6245f30
fixing the settings for to appropriately retrieve punctuation handlin…
EclipseGc Nov 2, 2015
30acf0e
Remove references to "node" in comments and variables. Replace with …
randomletters Nov 3, 2015
8984a6c
Replace checkPlain() function and added html entities decode
giancarlosotelo Nov 5, 2015
1949f01
Merge pull request #89 from giancarlosotelo/fix_test
Berdir Nov 5, 2015
67c880b
Change wording of message based on feedback
randomletters Nov 6, 2015
593ed20
added context definitions to the pathauto entity schema
EclipseGc Nov 9, 2015
734e9a3
adding relationship routes for adding, editing and deleting relations…
EclipseGc Nov 9, 2015
3e32236
Change label to EntityAliasTypeBase label.
randomletters Nov 9, 2015
4df082d
Merge pull request #88 from randomletters/remove-node-text
Berdir Nov 9, 2015
641765e
added helper methods for handling contexts to the pathauto pattern en…
EclipseGc Nov 9, 2015
993141a
Adding additional handling to the pattern configuration wizard step i…
EclipseGc Nov 9, 2015
e595d07
moving to the entity getContexts() method instead of directly delegat…
EclipseGc Nov 9, 2015
3322c08
moving to the entity getContexts() method instead of directly delegat…
EclipseGc Nov 9, 2015
f630a94
adding a more appropriate label to the derived plugin context definit…
EclipseGc Nov 9, 2015
e0681c3
adding support for relationship contexts.
EclipseGc Nov 9, 2015
124c93a
adding the necessary form for adding contexts. These should ultimate …
EclipseGc Nov 9, 2015
1289a0c
Merge with md-systems 8.x-1.x
EclipseGc Nov 9, 2015
ea5680b
removed the unnecessary menu entry
EclipseGc Nov 9, 2015
41307c8
minimizing the diff from merging
EclipseGc Nov 9, 2015
1e6ad4e
removing unnecessary use statements
EclipseGc Nov 9, 2015
335a118
Added ctools dependency for travis
Berdir Nov 9, 2015
c4cfc00
Remove custom entity delete form, fix permission
Berdir Nov 9, 2015
1fd05ed
Shorten the config prefix to just pattern
Berdir Nov 9, 2015
9375459
Remove stringTranslation property in PathautoManager, duplicated by t…
Berdir Nov 9, 2015
0dd6a67
Remove default config and schema for old patterns file
Berdir Nov 10, 2015
9403e55
Use draggable list builder, add necessary keys, remove need for custo…
Berdir Nov 10, 2015
e4cd27b
Remove PathautoPatternsForm
Berdir Nov 10, 2015
0345fc0
Remove getPatternDescription()
Berdir Nov 10, 2015
81a4017
Remove hardcoded entity alias types
Berdir Nov 10, 2015
f87c390
Remove NodeAliasTest
Berdir Nov 10, 2015
b01db92
Fixed relationship url arguments, compatiblity with latest ctools, co…
Berdir Nov 11, 2015
4be22f8
Remove no longer used methods from alias type plugins, fix bugs in al…
Berdir Nov 11, 2015
f5f6ec5
Starting fixing tests
Berdir Nov 14, 2015
0f34a98
PathautoUnitTest almost working again
Berdir Nov 14, 2015
72872c4
Started fixing web tests
Berdir Nov 14, 2015
732c65c
Update the source prefix for the forum, node and taxonomy term alias …
chindris Nov 17, 2015
a066b8f
Merge pull request #94 from chindris/update-source-prefix
Berdir Nov 17, 2015
68582ff
Merge branch '8.x-1.x' into pattern-config-entities
Berdir Nov 17, 2015
bb0da8f
Rename createAlias() and updateAlias() methods
Berdir Nov 17, 2015
9699d7c
Documentation and cleanup
Berdir Nov 17, 2015
8acd98c
Rename PathautoManager to PathautoGenerator
Berdir Nov 17, 2015
217afbb
Refactor pattern matching and loading
Berdir Nov 17, 2015
58e1443
Fixing more tests
Berdir Nov 17, 2015
2e5b49e
Tests for the mass deletion of url aliases.
chindris Nov 21, 2015
c0be620
updating method names and signatures to conform to newest ctools update.
EclipseGc Nov 23, 2015
5e1115e
Merge pull request #95 from chindris/batch-delete-tests
Berdir Nov 23, 2015
54248b8
Fix NodeAliasTest
Berdir Nov 23, 2015
e626fd9
Merged 8.x-1.x
Berdir Nov 23, 2015
b1fd07f
Abstracting the relationship forms into ctools and rebuilding pathaut…
EclipseGc Nov 24, 2015
c9bcc65
Merge branch 'pattern-config-entities' of https://github.com/md-syste…
EclipseGc Nov 24, 2015
1da2e20
Added update function for widget change
Berdir Nov 26, 2015
69add3d
Also added code to update installed entity definitions
Berdir Nov 26, 2015
3f68a03
Issue #936222 by mvc, quicksketch, joelpittet, Dave Reid, sammarks15,…
Berdir Oct 19, 2015
fa45a59
Add computed pathauto state field, store in key value
Berdir Nov 29, 2015
4514f99
Merge pull request #82 from md-systems/936222
Berdir Nov 29, 2015
6df93af
Merge branch '8.x-1.x' into pattern-config-entities
Berdir Nov 29, 2015
4011463
Update after merge and rename pathauto.manager to pathauto.generator
Berdir Nov 29, 2015
8fbd859
Add helper method to test for defining conditions, fix tests, reset c…
Berdir Nov 29, 2015
83bf006
Improve deriver
Berdir Nov 29, 2015
53694da
Remove wizards, provide a simple pattern edit form, list builder impr…
Berdir Dec 5, 2015
cc4df67
Avoid showing bundle option for entity types that have none
Berdir Dec 5, 2015
4d19100
Fixed hasField() check
Berdir Dec 16, 2015
c5a646d
Issue #2114323 by alberto56, jarkkotuunanen, ollii, frakke: Switched …
Berdir Oct 13, 2015
bb274ad
Fix test, add missing display configuration.
Berdir Nov 28, 2015
5144a12
Merge pull request #81 from md-systems/port-2114323
Berdir Dec 16, 2015
003760f
Fixed hasField() check
Berdir Dec 16, 2015
d400d95
Merge branch '8.x-1.x' into pattern-config-entities-simplified-ui
Berdir Dec 16, 2015
6422007
Remove setConfiguration() call from alias type
Berdir Dec 16, 2015
c031117
Avoid exception if an entity is not saved yet
Berdir Dec 17, 2015
e58a817
Add missing return for PathautoState fix
Berdir Dec 17, 2015
99111ea
Fix form redirection after deleting aliases
juampynr Dec 18, 2015
4c841b8
Fix typo in docblock
juampynr Dec 19, 2015
25f18ae
Use the appropriate theme call to render link to show token tree
hussainweb Dec 24, 2015
5b7a6df
Merge pull request #101 from hussainweb/8.x-1.x
Berdir Dec 24, 2015
9d71dc7
Fixed update function writes incorrecty value back to field storage d…
Berdir Dec 24, 2015
29327b5
Test that the mass delete form redirects correctly
juampynr Dec 25, 2015
8750f07
Fix PathautoUiTest test
juampynr Dec 25, 2015
387eddb
[#79] Update README.md
juampynr Dec 25, 2015
8b0b4f0
Merge pull request #105 from juampynr/fix-ui-tests
Berdir Dec 26, 2015
615a633
Adjust wording for link APIs at README.md
juampynr Dec 26, 2015
3e692c7
Merge pull request #106 from juampynr/update-readme
Berdir Dec 26, 2015
fa62702
Merge pull request #99 from juampynr/delete-submit-redirect
Berdir Dec 26, 2015
ef88f4b
Merge remote-tracking branch 'origin/8.x-1.x' into pattern-config-ent…
Berdir Dec 27, 2015
8bba1aa
Use the appropriate theme call to render link to show token tree
Berdir Dec 27, 2015
ce8869a
Set correct weight for page pattern
Berdir Dec 27, 2015
9e242e7
Don't expect Pathauto to delete patterns on bundle deletion
juampynr Dec 28, 2015
d663322
Merge pull request #109 from juampynr/remove-bundle-delete-logic
Berdir Dec 28, 2015
2297ab6
[#10] Port patterns from config objects to config entities
juampynr Dec 29, 2015
44c3b2f
[#10] Add support to port language-dependant patterns
juampynr Dec 30, 2015
4295382
[#10] Add language context to patterns
juampynr Dec 31, 2015
3f3f568
Merge pull request #111 from juampynr/110-update-path-patterns
Berdir Dec 31, 2015
8710697
Remove leftover pattern form
Berdir Jan 1, 2016
3ad217b
Fix punctuation settings
Berdir Jan 1, 2016
5512cdc
Improve documentation, fix plugin dependencies
Berdir Jan 1, 2016
468a72f
Use token entity mapper to clean up token mapping code
Berdir Jan 1, 2016
749e06c
Merge pull request #115 from md-systems/pattern-config-entities-simpl…
Berdir Jan 1, 2016
c0802b2
Remove debug() statement
juampynr Jan 1, 2016
a6e3d74
Merge pull request #116 from juampynr/remove-debug
Berdir Jan 1, 2016
5615320
[#113] Add tests for patterns with language conditions
juampynr Jan 3, 2016
418934c
[#113] Add translation support on bulk alias generation
juampynr Jan 4, 2016
bcab307
[#113] Use the UI to create patterns
juampynr Jan 4, 2016
1c6e7ed
[#113] Always create the article content type
juampynr Jan 4, 2016
8eb0019
[#113] Fix failing assertion when testing patterns with languages
juampynr Jan 4, 2016
96742c6
[#113] Remove unneeded statements
juampynr Jan 4, 2016
462f3b9
[#113] Simplify bulk update process with translations
juampynr Jan 5, 2016
3370284
Merge pull request #118 from juampynr/113-test-multilingual-patterns
Berdir Jan 5, 2016
a38509d
[#128] Add drupal/token 8.1.x-dev as dependency to ensure code compat…
Jan 15, 2016
818240d
[#128] Added drupal/ctools 8.3.x-dev as dependency.
Jan 15, 2016
e5a1476
Merge pull request #129 from Rackberg/8.x-1.x
Berdir Jan 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[#113] Fix failing assertion when testing patterns with languages
juampynr committed Jan 4, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 8eb0019dec486b40156bd4d27c852bd82e0dd43d
26 changes: 14 additions & 12 deletions src/Tests/PathautoLocaleTest.php
Original file line number Diff line number Diff line change
@@ -97,18 +97,20 @@ function testLanguagePatterns() {
$this->drupalLogin($this->rootUser);

// Add French language.
ConfigurableLanguage::createFromLangcode('fr')->save();
// Add predefined French language.
$edit = array(
'predefined_langcode' => 'fr',
);
$this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));

// Enable content translation on articles.
\Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE);
drupal_static_reset();
\Drupal::entityManager()->clearCachedDefinitions();
\Drupal::service('router.builder')->rebuild();
\Drupal::service('entity.definition_update_manager')->applyUpdates();
// Enable the language selector when editing nodes.
$article_language_settings = \Drupal::service('entity.manager')->getStorage('language_content_settings')->load('node.article');
$article_language_settings->set('language_alterable', 1);
$article_language_settings->save();
$this->drupalGet('admin/config/regional/content-language');
$edit = array(
'entity_types[node]' => TRUE,
'settings[node][article][translatable]' => TRUE,
'settings[node][article][settings][language][language_alterable]' => TRUE,
);
$this->drupalPostForm(NULL, $edit, t('Save configuration'));

// Create a pattern for English articles.
$this->drupalGet('admin/config/search/path/patterns/add');
@@ -151,8 +153,8 @@ function testLanguagePatterns() {
$english_node = $this->drupalGetNodeByTitle('English node');
$this->assertAlias('/node/' . $english_node->id(), '/the-articles/english-node', 'en');

$add_translation_url = Url::fromRoute('entity.node.content_translation_add', ['node' => $english_node->id(), 'source' => 'en', 'target' => 'fr']);
$this->drupalGet($add_translation_url);
$this->drupalGet('node/' . $english_node->id() . '/translations');
$this->clickLink(t('Add'));
$edit = array(
'title[0][value]' => 'French node',
);