Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 7, 2020
1 parent afb858a commit b7391e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b7391e4

Please sign in to comment.