Fakerino\Core\Test\Filler\DbFillerTest::testFillNumeric PHP Method

testFillNumeric() public method

public testFillNumeric ( $columnName, $columnType, $columnLength )
    public function testFillNumeric($columnName, $columnType, $columnLength)
    {
        $this->mockDoctrineLayer->method('getTotalColumns')->willReturn(1);
        $this->mockDoctrineLayer->expects($this->exactly($this->num))->method('getColumnName')->willReturn($columnName);
        $this->mockDoctrineLayer->expects($this->exactly($this->num))->method('getColumnType')->willReturn($columnType);
        $this->mockDoctrineLayer->expects($this->exactly($this->num))->method('getColumnLength')->willReturn($columnLength);
        $rows = $this->dbFiller->fill();
        $this->assertInternalType('array', $rows);
        $this->assertEquals($this->num, count($rows));
    }