Mongolid\SchemaTest::testShouldNotRefreshCreatedAtTimestamps PHP Method

testShouldNotRefreshCreatedAtTimestamps() public method

public testShouldNotRefreshCreatedAtTimestamps ( $value, $expectation, $compareTimestamp = true )
    public function testShouldNotRefreshCreatedAtTimestamps($value, $expectation, $compareTimestamp = true)
    {
        // Arrange
        $schema = m::mock(Schema::class . '[]');
        // Assertion
        $result = $schema->createdAtTimestamp($value);
        $this->assertInstanceOf(get_class($expectation), $result);
        if ($compareTimestamp) {
            $this->assertEquals((string) $expectation, (string) $result);
        }
    }