summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php')
-rw-r--r--core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php
index 646100a..a9fcadf 100644
--- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php
+++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php
@@ -37,10 +37,10 @@ class BreakpointCRUDTest extends BreakpointTestBase {
$this->verifyBreakpoint($breakpoint);
- // Test breakpoint_load_all
- $all_breakpoints = entity_load_multiple('breakpoint');
+ // Test BreakPoint::loadMultiple().
+ $all_breakpoints = Breakpoint::loadMultiple();
$config_name = $breakpoint->id();
- $this->assertTrue(isset($all_breakpoints[$config_name]), 'breakpoint_load_all: New breakpoint is present when loading all breakpoints.');
+ $this->assertTrue(isset($all_breakpoints[$config_name]), 'New breakpoint is present when loading all breakpoints.');
$this->verifyBreakpoint($breakpoint, $all_breakpoints[$config_name]);
// Update the breakpoint.
@@ -51,6 +51,6 @@ class BreakpointCRUDTest extends BreakpointTestBase {
// Delete the breakpoint.
$breakpoint->delete();
- $this->assertFalse(breakpoint_load($config_name), 'breakpoint_load: Loading a deleted breakpoint returns false.', 'Breakpoints API');
+ $this->assertNull(Breakpoint::load($config_name), 'Loading a deleted breakpoint returns null.', 'Breakpoints API');
}
}