|
@@ 136-141 (lines=6) @@
|
| 133 |
|
}); |
| 134 |
|
|
| 135 |
|
$this->module->enableUnblockingEmail = true; |
| 136 |
|
$this->specify("we have unblock blocked user", function () { |
| 137 |
|
/** @var User $user */ |
| 138 |
|
$user = $this->tester->grabFixture('users', 'blocked'); |
| 139 |
|
expect("we can unblock blocked user", $user->unblock())->true(); |
| 140 |
|
$this->tester->seeEmailIsSent(); |
| 141 |
|
}); |
| 142 |
|
|
| 143 |
|
$this->specify("we have unblock not blocked user", function () { |
| 144 |
|
/** @var User $user */ |
|
@@ 143-148 (lines=6) @@
|
| 140 |
|
$this->tester->seeEmailIsSent(); |
| 141 |
|
}); |
| 142 |
|
|
| 143 |
|
$this->specify("we have unblock not blocked user", function () { |
| 144 |
|
/** @var User $user */ |
| 145 |
|
$user = $this->tester->grabFixture('users', 'unconfirmed'); |
| 146 |
|
expect("we can't unblock not blocked user", $user->unblock())->false(); |
| 147 |
|
$this->tester->dontSeeEmailIsSent(); |
| 148 |
|
}); |
| 149 |
|
|
| 150 |
|
$this->specify("we have unblock user override mail setting", function () { |
| 151 |
|
/** @var User $user */ |
|
@@ 150-155 (lines=6) @@
|
| 147 |
|
$this->tester->dontSeeEmailIsSent(); |
| 148 |
|
}); |
| 149 |
|
|
| 150 |
|
$this->specify("we have unblock user override mail setting", function () { |
| 151 |
|
/** @var User $user */ |
| 152 |
|
$user = $this->tester->grabFixture('users', 'active'); |
| 153 |
|
expect("we can unblock user", $user->unblock(false))->true(); |
| 154 |
|
$this->tester->dontSeeEmailIsSent(); |
| 155 |
|
}); |
| 156 |
|
|
| 157 |
|
$this->specify("we have block user override global email setting", function () { |
| 158 |
|
/** @var User $user */ |
|
@@ 157-162 (lines=6) @@
|
| 154 |
|
$this->tester->dontSeeEmailIsSent(); |
| 155 |
|
}); |
| 156 |
|
|
| 157 |
|
$this->specify("we have block user override global email setting", function () { |
| 158 |
|
/** @var User $user */ |
| 159 |
|
$user = $this->tester->grabFixture('users', 'active'); |
| 160 |
|
expect("we can block user", $user->block(false))->true(); |
| 161 |
|
$this->tester->dontSeeEmailIsSent(); |
| 162 |
|
}); |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
/** |