Fix field names and behavior in SlotRecord.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 6 Mar 2018 18:46:13 +0000 (19:46 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 8 Mar 2018 11:53:25 +0000 (12:53 +0100)
commitec108ea14beef26f08987071084f485f2c30c495
treeb0097f7357400a447077d9f09320e4dd03b03336
parent9e26379d421b7a7a3fcddda28ed1c251b3529325
Fix field names and behavior in SlotRecord.

The field names used in SlotRecord got out of sync with the changes made
to the database schema. Nobody noticed, because these fields are not yet
written to or read from the database.

This change also rewrites SlotRecordTest and adds several sanity checks
to SlotRecord, in preparation of the introduction of slot_origin.

Change-Id: Ifdf040174705bf88104b8c922c9d6d1120d48f3a
includes/Storage/RevisionStore.php
includes/Storage/SlotRecord.php
tests/phpunit/includes/Storage/MutableRevisionRecordTest.php
tests/phpunit/includes/Storage/RevisionStoreDbTest.php
tests/phpunit/includes/Storage/SlotRecordTest.php