Michael Stenta
92c558dde3
Use plain strings in submitForm() calls in functional tests.
...
This fixes failing tests after upgrading to Drupal 10.2.3.
See https://www.drupal.org/project/drupal/issues/3399413
2024-02-08 05:05:39 -05:00
Michael Stenta
e4a33497d7
Fix Call to deprecated methods assertText() and assertRaw().
2022-09-13 10:23:48 -04:00
Michael Stenta
4d36134cd4
Fix Call to deprecated method drupalPostForm().
2022-09-13 10:23:48 -04:00
paul121
b9f41d7d69
Explicitly enable access checking on content entity queries.
...
Not calling ::accessCheck() is deprecated in Drupal 9.2. See
https://www.drupal.org/node/3201242
2021-10-01 10:46:16 -04:00
Symbioquine
27142866d3
Improve asset archive timestamp behavior #446
...
**Why?** Fix some weird behavior and make sure
inconsistent states cannot occur;
* Allow setting the archived timestamp at the same
time as moving an asset to the archived state.
* Ensure that the archived timestamp cannot be set
without also transitioning into the archived state.
* Ensure that the arhived timestamp cannot be set to
NULL without transitioning back to the active state.
2021-09-24 12:36:14 -04:00
Michael Stenta
b49441efe4
Set $defaultTheme to stark for all descendants of FarmBrowserTestBase.
2021-09-06 10:46:20 -04:00
Michael Stenta
9e9734c3f5
Include link to new assets and plans in confirmation message.
2021-08-03 09:11:51 -04:00
Michael Stenta
e6909b926a
Remove "done" from AssetCRUDTest and AssetPlanTest.
2020-12-10 10:48:16 -05:00
Michael Stenta
09083d4e65
AssertLegacyTrait::assertResponse() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->statusCodeEquals() instead. See https://www.drupal.org/node/3129738
2020-12-03 10:33:54 -05:00
Michael Stenta
e766ccf991
Add an archived timestamp field to assets, set when the asset status changes to archived.
2020-10-01 23:41:40 -04:00
Michael Stenta
d6d79475de
Use StringTranslationTrait in AssetCRUDTest.
2020-10-01 15:51:51 -04:00
Michael Stenta
55bed83a5e
Put asset module tests in the farm group.
2020-10-01 15:48:04 -04:00
Michael Stenta
6f142769f6
Generalize farm_asset module to asset module.
2020-10-01 15:48:04 -04:00