_news__news_pretty_status (private)

 _news__news_pretty_status

Defined in packages/news/tcl/test/news-test-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) news::test::assert_status_pretty news::test::assert_status_pretty (private) _news__news_pretty_status _news__news_pretty_status _news__news_pretty_status->aa_log _news__news_pretty_status->aa_log_result _news__news_pretty_status->news::test::assert_status_pretty

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set now_seconds [clock scan now]
    set offset [expr {60*60*24*10}]
    set date_format "%Y-%m-%d"
    set future_seconds [expr {$now_seconds + $offset}]
    set future_date [clock format $future_seconds -format $date_format]
    set past_seconds [expr {$now_seconds - $offset}]
    set past_date [clock format $past_seconds -format $date_format]

    # Scheduled for publish, no archive
    news::test::assert_status_pretty  -publish_date $future_date  -archive_date ""  -status going_live_no_archive

    # Scheduled for publish and archive
    news::test::assert_status_pretty  -publish_date $future_date  -archive_date $future_date  -status going_live_with_archive

    # Published, no archive
    news::test::assert_status_pretty  -publish_date $past_date  -archive_date ""  -status published_no_archive

    # Published scheduled archived
    news::test::assert_status_pretty  -publish_date $past_date  -archive_date $future_date  -status published_with_archive

    # Published and archived
    news::test::assert_status_pretty  -publish_date $past_date  -archive_date $past_date  -status archived

    # Not scheduled for publish
    news::test::assert_status_pretty  -publish_date ""  -archive_date ""  -status unapproved
}} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "news_pretty_status (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic
PostgreSQL XQL file:
packages/news/tcl/test/news-test-procs-postgresql.xql

Oracle XQL file:
packages/news/tcl/test/news-test-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: