From b7391e486fc68c1c422668a277eaac2bcbe72b2b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 7 Dec 2020 13:17:36 -0600 Subject: [PATCH] rename variable --- src/Illuminate/Mail/Mailable.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index 348b2bc9359d..8d3cc3ee45cd 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -149,11 +149,11 @@ class Mailable implements MailableContract, Renderable public $mailer; /** - * The rendered views for assertions. + * The rendered mailable views for testing / assertions. * * @var array */ - protected $assertionableRender; + protected $assertionableRenderStrings; /** * The callback that should be invoked while building the view data. @@ -926,11 +926,11 @@ public function assertDontSeeInText($string) */ protected function renderForAssertions() { - if ($this->assertionableRender) { - return $this->assertionableRender; + if ($this->assertionableRenderStrings) { + return $this->assertionableRenderStrings; } - return $this->assertionableRender = $this->withLocale($this->locale, function () { + return $this->assertionableRenderStrings = $this->withLocale($this->locale, function () { Container::getInstance()->call([$this, 'build']); $html = Container::getInstance()->make('mailer')->render(