Page MenuHomeIn-Portal Phabricator

INP-1512 - Each "kDBBase::SetDefaultValues" call should respect "#NOW#" default value
ClosedPublic

Authored by alex on Nov 3 2015, 8:42 AM.

Details

Test Plan

Part 1

  1. login to Admin Console
  2. go to ConfigurationWebsiteRegional section
  3. change Time Format to the g:i:s A (adds seconds)
  4. save changes
  5. go to Website & ContentPromo Blocks section
  6. open new promo block adding page
  7. remeber value in Created On field
  8. close the form
  9. open new promo block adding page
  10. confirm, that current value in Created On field is larger, then remembered one

Part 2

  1. go to index.php file
  2. in there after application is initialized:
    • create empty object of promo-block-group unit (db item)
    • store the value of CreatedOn_date field somewhere
    • wait for 5 seconds (e.g. sleep method call)
    • call the ->Clear(); on that object
    • store the value of CreatedOn_date field somewhere
    • confirm, that both stored values doesn't match (before they were matching)
    • confirm, that 2nd stored value is larger then 1st stored value

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 239
Build 239: arc lint + arc unit

Event Timeline

alex updated this revision to Diff 397.Nov 3 2015, 8:42 AM
alex retitled this revision from to INP-1512 - Each "kDBBase::SetDefaultValues" call should respect "#NOW#" default value.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1512.
glebs accepted this revision.Nov 4 2015, 1:51 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.Nov 4 2015, 1:51 AM
This revision was automatically updated to reflect the committed changes.
alex edited edge metadata.Mar 10 2016, 5:37 AM
alex added a project: Restricted Project.