47 : void
48 {
50 $this->db_mock->expects($this->once())
51 ->method('nextId')
53 ->willReturn(1);
54
56 $this->assertEquals(1, $connector->nextID($test_ar));
57
58 $this->db_mock->expects($this->once())
59 ->method('tableExists')
61 ->willReturn(true);
62 $this->assertEquals(true, $connector->checkTableExists($test_ar));
63
64 $this->db_mock->expects($this->once())
65 ->method('tableColumnExists')
67 ->willReturn(true);
68 $this->assertEquals(true, $connector->checkFieldExists($test_ar, 'data_id'));
69 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...