mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-03-07 08:28:41 +00:00
fix bugs
This commit is contained in:
parent
634cc3d505
commit
328e9c547e
|
|
@ -293,7 +293,7 @@ final class StringUtils
|
|||
// @todo: this should not be necessary
|
||||
return \str_replace(
|
||||
['</del></del>', '</ins></ins>', '<ins></ins>', '<del></del>', '</ins><ins>', '</del><del>', '</ins> <del>', '</del> <ins>'],
|
||||
['', '', '', '', '', '', '</ins><del>', '</del><ins>'],
|
||||
['</del>', '</ins>', '', '', '', '', '</ins><del>', '</del><ins>'],
|
||||
$result
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -69,9 +69,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -110,9 +110,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -140,9 +140,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -168,9 +168,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -196,9 +196,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -227,9 +227,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -256,9 +256,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -284,9 +284,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -313,9 +313,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -346,9 +346,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -379,9 +379,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
@ -443,9 +443,9 @@ trait MailHandlerSmtpTrait
|
|||
$smtp = new Smtp();
|
||||
$this->handler->smtp = $smtp;
|
||||
|
||||
if ($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0])
|
||||
&& ($this->handler->smtp === null || !$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
if (($this->handler->mailerTool !== ''
|
||||
&& !\file_exists(\explode(' ', $this->handler->mailerTool)[0]))
|
||||
|| (!$this->handler->smtpConnect($this->handler->smtpOptions))
|
||||
) {
|
||||
self::markTestSkipped();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ final class InstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testInvalidModuleInstall() : void
|
||||
{
|
||||
$this->expectException(\UnexpectedValueException::class);
|
||||
$this->expectException(\Error::class);
|
||||
|
||||
$app = new class() extends ApplicationAbstract {};
|
||||
$app->dbPool = $GLOBALS['dbpool'];
|
||||
|
|
|
|||
12746
tests/coverage.xml
12746
tests/coverage.xml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user