summaryrefslogtreecommitdiffstats
path: root/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php')
-rw-r--r--core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
index 6a85657..f8df38a 100644
--- a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
+++ b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
@@ -7,6 +7,7 @@
namespace Drupal\aggregator\Tests;
+use Drupal\aggregator\Entity\Feed;
use Drupal\Core\Language\Language;
use Drupal\simpletest\WebTestBase;
use Drupal\aggregator\FeedInterface;
@@ -58,7 +59,7 @@ abstract class AggregatorTestBase extends WebTestBase {
$fid = db_query("SELECT fid FROM {aggregator_feed} WHERE title = :title AND url = :url", array(':title' => $edit['title[0][value]'], ':url' => $edit['url[0][value]']))->fetchField();
$this->assertTrue(!empty($fid), 'The feed found in database.');
- return aggregator_feed_load($fid);
+ return Feed::load($fid);
}
/**