File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class Alerts extends BaseCollector
4646 */
4747 protected array $ alerts ;
4848
49- //--------------------------------------------------------------------
49+ // --------------------------------------------------------------------
5050
5151 /**
5252 * Preloads alerts so they are only gathered once.
@@ -56,7 +56,7 @@ public function __construct()
5656 $ this ->alerts = AlertsFilter::gather (config ('Alerts ' ));
5757 }
5858
59- //--------------------------------------------------------------------
59+ // --------------------------------------------------------------------
6060
6161 /**
6262 * Returns the data of this collector to be formatted in the toolbar
@@ -74,7 +74,7 @@ public function display(): string
7474 return $ html ;
7575 }
7676
77- //--------------------------------------------------------------------
77+ // --------------------------------------------------------------------
7878
7979 /**
8080 * Gets the "badge" value for the button.
@@ -84,7 +84,7 @@ public function getBadgeValue(): int
8484 return count ($ this ->alerts );
8585 }
8686
87- //--------------------------------------------------------------------
87+ // --------------------------------------------------------------------
8888
8989 /**
9090 * Display the icon.
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ public function testGather()
5151
5252 public function testFilter ()
5353 {
54+ config ('Alerts ' )->template = 'Tatter\Alerts\Views\Bootstrap4 ' ;
55+
5456 $ expected = <<<'EOD'
5557 <html>
5658 <head>
You can’t perform that action at this time.
0 commit comments