Commit 4c956085 authored by Jonathan Smith's avatar Jonathan Smith Committed by Jonathan Smith
Browse files

Issue #3260070 by jonathan1055: Fixed two missed calls to this->titleField()

parent 78ab9dc9
Loading
Loading
Loading
Loading
+2 −2
Changes for scheduler_rules_integration/tests/src/Functional/SchedulerRulesActionsTest.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class SchedulerRulesActionsTest extends SchedulerBrowserTestBase {
   */
  public function testPublishOnActions($entityTypeId, $enabledBundle) {
    $nonEnabledBundle = $this->entityTypeObject($entityTypeId, 'non-enabled')->id();
    $titleField = ($entityTypeId == 'media') ? 'name' : 'title';
    $titleField = $this->titleField($entityTypeId);
    $publish_on = $this->requestTime + 1800;
    $publish_on_formatted = $this->dateFormatter->format($publish_on, 'long');

@@ -234,7 +234,7 @@ class SchedulerRulesActionsTest extends SchedulerBrowserTestBase {
   */
  public function testUnpublishOnActions($entityTypeId, $enabledBundle) {
    $nonEnabledBundle = $this->entityTypeObject($entityTypeId, 'non-enabled')->id();
    $titleField = ($entityTypeId == 'media') ? 'name' : 'title';
    $titleField = $this->titleField($entityTypeId);
    $unpublish_on = $this->requestTime + 2400;
    $unpublish_on_formatted = $this->dateFormatter->format($unpublish_on, 'long');