mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Fix blob tests
This commit is contained in:
parent
41bcffd6fb
commit
b5f959aabf
3 changed files with 2 additions and 26 deletions
|
@ -133,13 +133,13 @@ abstract class BaseResult extends \JKingWeb\Arsse\Test\AbstractTest {
|
|||
|
||||
public function testGetBlobRow(): void {
|
||||
$exp = ['blob' => hex2bin("DEADBEEF")];
|
||||
$test = new $this->resultClass(...$this->makeResult(self::$selectBlob));
|
||||
$test = new $this->resultClass(...$this->makeResult(static::$selectBlob));
|
||||
$this->assertEquals($exp, $test->getRow());
|
||||
}
|
||||
|
||||
public function testGetBlobValue(): void {
|
||||
$exp = hex2bin("DEADBEEF");
|
||||
$test = new $this->resultClass(...$this->makeResult(self::$selectBlob));
|
||||
$test = new $this->resultClass(...$this->makeResult(static::$selectBlob));
|
||||
$this->assertEquals($exp, $test->getValue());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,16 +30,4 @@ class TestResult extends \JKingWeb\Arsse\TestCase\Db\BaseResult {
|
|||
}
|
||||
parent::tearDownAfterClass();
|
||||
}
|
||||
|
||||
public function testGetBlobRow(): void {
|
||||
$exp = ['blob' => hex2bin("DEADBEEF")];
|
||||
$test = new $this->resultClass(...$this->makeResult(self::$selectBlob));
|
||||
$this->assertEquals($exp, $test->getRow());
|
||||
}
|
||||
|
||||
public function testGetBlobValue(): void {
|
||||
$exp = hex2bin("DEADBEEF");
|
||||
$test = new $this->resultClass(...$this->makeResult(self::$selectBlob));
|
||||
$this->assertEquals($exp, $test->getValue());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,16 +21,4 @@ class TestResult extends \JKingWeb\Arsse\TestCase\Db\BaseResult {
|
|||
$set = static::$interface->query($q);
|
||||
return [static::$interface, $set];
|
||||
}
|
||||
|
||||
public function testGetBlobRow(): void {
|
||||
$exp = ['blob' => hex2bin("DEADBEEF")];
|
||||
$test = new $this->resultClass(...$this->makeResult(self::$selectBlob));
|
||||
$this->assertEquals($exp, $test->getRow());
|
||||
}
|
||||
|
||||
public function testGetBlobValue(): void {
|
||||
$exp = hex2bin("DEADBEEF");
|
||||
$test = new $this->resultClass(...$this->makeResult(self::$selectBlob));
|
||||
$this->assertSame($exp, $test->getValue());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue