Skip to content

Commit

Permalink
Merge branch '7.0' into 7
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 22, 2025
2 parents 0916acc + e45687d commit 14cec02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion tests/php/Extension/Engine/SiteTreePublishingEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class SiteTreePublishingEngineTest extends SapphireTest
{
protected static $fixture_file = 'SiteTreePublishingEngineTest.yml';

protected static $extra_dataobjects = [
DataObjectNoTrigger::class,
];

protected static $required_extensions = [
SiteTree::class => [
PublishableSiteTree::class,
Expand Down Expand Up @@ -246,7 +250,8 @@ public function testStaticPublishingTriggerOnExtension(): void
/** @var QueuedJobsTestService $service */
$service = QueuedJobService::singleton();

$dataObject = DataObjectNoTrigger::create()->write();
$dataObject = DataObjectNoTrigger::create();
$dataObject->write();
$dataObject->publishRecursive();

$jobs = $service->getJobs();
Expand Down
3 changes: 2 additions & 1 deletion tests/php/StaticPublisherTest/Model/DataObjectNoTrigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

class DataObjectNoTrigger extends DataObject implements TestOnly
{
private static $table_name = 'StaticPublishQueue_DataObjectNoTrigger';

public function AbsoluteLink()
{
return 'http://example.com/subpage/dataobject-1';
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ public function objectsToDelete($context)
return [];
}
}

0 comments on commit 14cec02

Please sign in to comment.