mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +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 {
|
public function testGetBlobRow(): void {
|
||||||
$exp = ['blob' => hex2bin("DEADBEEF")];
|
$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());
|
$this->assertEquals($exp, $test->getRow());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetBlobValue(): void {
|
public function testGetBlobValue(): void {
|
||||||
$exp = hex2bin("DEADBEEF");
|
$exp = hex2bin("DEADBEEF");
|
||||||
$test = new $this->resultClass(...$this->makeResult(self::$selectBlob));
|
$test = new $this->resultClass(...$this->makeResult(static::$selectBlob));
|
||||||
$this->assertEquals($exp, $test->getValue());
|
$this->assertEquals($exp, $test->getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,16 +30,4 @@ class TestResult extends \JKingWeb\Arsse\TestCase\Db\BaseResult {
|
||||||
}
|
}
|
||||||
parent::tearDownAfterClass();
|
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);
|
$set = static::$interface->query($q);
|
||||||
return [static::$interface, $set];
|
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