@@ -17,8 +17,8 @@ public function testNoSpecialConfiguration()
1717 $ mock ->data = ['name ' => 'filename ' ];
1818 $ mock ->field = 'field ' ;
1919 $ mock ->entity ->expects ($ this ->once ())->method ('get ' )->will ($ this ->returnValue (1 ));
20- $ mock ->table ->expects ($ this ->once ())->method ('alias ' )->will ($ this ->returnValue ('Table ' ));
21- $ mock ->table ->expects ($ this ->once ())->method ('primaryKey ' )->will ($ this ->returnValue ('id ' ));
20+ $ mock ->table ->expects ($ this ->once ())->method ('getAlias ' )->will ($ this ->returnValue ('Table ' ));
21+ $ mock ->table ->expects ($ this ->once ())->method ('getPrimaryKey ' )->will ($ this ->returnValue ('id ' ));
2222 $ this ->assertEquals ('webroot/files/Table/field/ ' , $ mock ->basepath ());
2323 }
2424
@@ -31,8 +31,8 @@ public function testCustomPath()
3131 $ mock ->data = ['name ' => 'filename ' ];
3232 $ mock ->field = 'field ' ;
3333 $ mock ->entity ->expects ($ this ->once ())->method ('get ' )->will ($ this ->returnValue (1 ));
34- $ mock ->table ->expects ($ this ->once ())->method ('alias ' )->will ($ this ->returnValue ('Table ' ));
35- $ mock ->table ->expects ($ this ->once ())->method ('primaryKey ' )->will ($ this ->returnValue ('id ' ));
34+ $ mock ->table ->expects ($ this ->once ())->method ('getAlias ' )->will ($ this ->returnValue ('Table ' ));
35+ $ mock ->table ->expects ($ this ->once ())->method ('getPrimaryKey ' )->will ($ this ->returnValue ('id ' ));
3636 $ this ->assertEquals ('webroot/files/Table-field/ ' , $ mock ->basepath ());
3737 }
3838
@@ -45,8 +45,8 @@ public function testExistingEntityWithPrimaryKey()
4545 $ mock ->data = ['name ' => 'filename ' ];
4646 $ mock ->field = 'field ' ;
4747 $ mock ->entity ->expects ($ this ->once ())->method ('get ' )->will ($ this ->returnValue (1 ));
48- $ mock ->table ->expects ($ this ->once ())->method ('alias ' )->will ($ this ->returnValue ('Table ' ));
49- $ mock ->table ->expects ($ this ->exactly (2 ))->method ('primaryKey ' )->will ($ this ->returnValue ('id ' ));
48+ $ mock ->table ->expects ($ this ->once ())->method ('getAlias ' )->will ($ this ->returnValue ('Table ' ));
49+ $ mock ->table ->expects ($ this ->exactly (2 ))->method ('getPrimaryKey ' )->will ($ this ->returnValue ('id ' ));
5050 $ this ->assertEquals ('webroot/files/Table-field/1/ ' , $ mock ->basepath ());
5151 }
5252
@@ -75,7 +75,7 @@ public function testExitingEntityWithCompositePrimaryKey()
7575 $ mock ->data = ['name ' => 'filename ' ];
7676 $ mock ->field = 'field ' ;
7777 $ mock ->entity ->expects ($ this ->once ())->method ('isNew ' )->will ($ this ->returnValue (false ));
78- $ mock ->table ->expects ($ this ->once ())->method ('primaryKey ' )->will ($ this ->returnValue (['id ' , 'other_id ' ]));
78+ $ mock ->table ->expects ($ this ->once ())->method ('getPrimaryKey ' )->will ($ this ->returnValue (['id ' , 'other_id ' ]));
7979 $ mock ->basepath ();
8080 }
8181
@@ -113,7 +113,7 @@ public function testModelFieldYearWithMonthAndDayPath()
113113 $ mock ->data = ['name ' => 'filename ' ];
114114 $ mock ->field = 'field ' ;
115115 $ mock ->entity ->expects ($ this ->once ())->method ('get ' )->will ($ this ->returnValue (1 ));
116- $ mock ->table ->expects ($ this ->once ())->method ('alias ' )->will ($ this ->returnValue ('Table ' ));
116+ $ mock ->table ->expects ($ this ->once ())->method ('getAlias ' )->will ($ this ->returnValue ('Table ' ));
117117
118118 $ this ->assertEquals ('webroot/files/Table/field/ ' . date ("Y " ) . '/ ' . date ("m " ) . '/ ' . date ("d " ) . '/ ' , $ mock ->basepath ());
119119 }
@@ -169,7 +169,7 @@ public function testFieldValue()
169169 $ mock ->data = ['name ' => 'filename ' ];
170170 $ mock ->field = 'field ' ;
171171 $ mock ->entity ->expects ($ this ->any ())->method ('get ' )->will ($ this ->returnValue ('value ' ));
172- $ mock ->table ->expects ($ this ->once ())->method ('alias ' )->will ($ this ->returnValue ('Table ' ));
172+ $ mock ->table ->expects ($ this ->once ())->method ('getAlias ' )->will ($ this ->returnValue ('Table ' ));
173173 $ this ->assertEquals ('webroot/files/Table/value/ ' , $ mock ->basepath ());
174174 }
175175}
0 commit comments